From 55ff12ad663fe4fa752b5f7d24354075c22ea9ea Mon Sep 17 00:00:00 2001 From: liuhaitao Date: Thu, 30 Apr 2020 12:17:44 +0800 Subject: [PATCH] arch/arm/src/common/up_exit.c: _exit should call arm_fullcontextrestore for armv8-m Since armv8-m now uses arm_fullcontextrestore instead of up_fullcontextrestore, _exit should call arm_fullcontextrestore for armv8-m accordingly. Signed-off-by: liuhaitao --- arch/arm/src/common/up_exit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/src/common/up_exit.c b/arch/arm/src/common/up_exit.c index 0e7be57832..9fe3fdaa2f 100644 --- a/arch/arm/src/common/up_exit.c +++ b/arch/arm/src/common/up_exit.c @@ -187,5 +187,9 @@ void _exit(int status) /* Then switch contexts */ +#ifdef CONFIG_ARCH_ARMV8M + arm_fullcontextrestore(tcb->xcp.regs); +#else up_fullcontextrestore(tcb->xcp.regs); +#endif }