mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 15:05:07 +00: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:
parent
40c990f4f3
commit
55ff12ad66
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue