mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
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 <liuhaitao@xiaomi.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user