9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ac71c050b4623f0182157b9d77163ae5f30caf91
parent 22f61822f8de3b0785d0039686f5819a42b05fc7
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 23 Nov 2022 22:28:37 +0100

os9/arm64: Don't use SP_EL1 in EL1

SP_EL1 only can be used in EL2 and EL3.

Diffstat:
Msrc/os9/arch/arm64/arch.s | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/os9/arch/arm64/arch.s b/src/os9/arch/arm64/arch.s @@ -124,7 +124,7 @@ getctx: STP X9,X10,[X0,#16*16] MRS X9,SP_EL0 - MRS X10,SP_EL1 + MOV X10,SP STP X9,X10,[x0,#16*17] MRS X9,FAR_EL1 @@ -162,7 +162,7 @@ EXCEPTION: STP X9,X10,[SP,#-16*(20-16)] MRS X9,SP_EL0 - MRS X10,SP_EL1 + MOV X10,SP STP X9,X10,[SP,#-16*(20-17)] MRS X9,FAR_EL1 @@ -195,7 +195,7 @@ swtch: LDP X9,X10,[X0,#16*17] MSR SP_EL0,X9 - MSR SP_EL1,X10 + MOV SP,X10 LDP X9,X10,[X0,#16*16] MSR ESR_EL1,X10