[libcpu/aarch64] fix compile error (#8045)

Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
Shell 2023-09-16 11:52:42 +08:00 committed by GitHub
parent c25e9be6ad
commit b0deb61bc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 11 deletions

View File

@ -268,6 +268,17 @@ START_POINT_END(_thread_start)
ERET ERET
.endm .endm
.macro SAVE_USER_CTX
MRS X1, SPSR_EL1
AND X1, X1, 0xf
CMP X1, XZR
BNE 1f
BL lwp_uthread_ctx_save
LDP X0, X1, [SP]
1:
.endm
#ifdef RT_USING_SMP #ifdef RT_USING_SMP
#define rt_hw_interrupt_disable rt_hw_local_irq_disable #define rt_hw_interrupt_disable rt_hw_local_irq_disable
#define rt_hw_interrupt_enable rt_hw_local_irq_enable #define rt_hw_interrupt_enable rt_hw_local_irq_enable
@ -376,17 +387,6 @@ rt_hw_context_switch_interrupt:
vector_fiq: vector_fiq:
B . B .
.macro SAVE_USER_CTX
MRS X1, SPSR_EL1
AND X1, X1, 0xf
CMP X1, XZR
BNE 1f
BL lwp_uthread_ctx_save
LDP X0, X1, [SP]
1:
.endm
.globl vector_irq .globl vector_irq
vector_irq: vector_irq:
SAVE_CONTEXT SAVE_CONTEXT