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:
liuhaitao 2020-04-30 12:17:44 +08:00 committed by patacongo
parent 40c990f4f3
commit 55ff12ad66

View File

@ -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
}