libc:xtensa: move syscall to swint call
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
parent
b99ba04a8c
commit
38f8032e31
@ -26,6 +26,8 @@
|
|||||||
#include <arch/chip/core-isa.h>
|
#include <arch/chip/core-isa.h>
|
||||||
#include <arch/xtensa/xtensa_abi.h>
|
#include <arch/xtensa/xtensa_abi.h>
|
||||||
|
|
||||||
|
#include <arch/syscall.h>
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -127,8 +129,10 @@ setjmp:
|
|||||||
|
|
||||||
/* Flush registers. */
|
/* Flush registers. */
|
||||||
mov a4, a2 # save a2 (jmp_buf)
|
mov a4, a2 # save a2 (jmp_buf)
|
||||||
movi a2, 0
|
movi a2, SYS_flush_context
|
||||||
syscall
|
movi a3, XCHAL_SWINT_CALL
|
||||||
|
wsr a3, intset
|
||||||
|
isync
|
||||||
mov a2, a4 # restore a2
|
mov a2, a4 # restore a2
|
||||||
|
|
||||||
/* Copy the register save area at (sp - 16). */
|
/* Copy the register save area at (sp - 16). */
|
||||||
|
Loading…
Reference in New Issue
Block a user