summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Arm/SetJumpLongJump.asm
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2024-11-30 19:36:15 +0000
committerWarner Losh <imp@FreeBSD.org>2024-11-30 19:38:23 +0000
commit5d8674f2bdd536124b1dd026dfa729a1376b3cac (patch)
treeade665e8d0ce42d3068d4b00dae9171f47f3cd06 /MdePkg/Library/BaseLib/Arm/SetJumpLongJump.asm
parent4a14dfcc1110b35118d5be8054fecf59ffb83032 (diff)
Diffstat (limited to 'MdePkg/Library/BaseLib/Arm/SetJumpLongJump.asm')
-rw-r--r--MdePkg/Library/BaseLib/Arm/SetJumpLongJump.asm7
1 files changed, 4 insertions, 3 deletions
diff --git a/MdePkg/Library/BaseLib/Arm/SetJumpLongJump.asm b/MdePkg/Library/BaseLib/Arm/SetJumpLongJump.asm
index 0dc6917df960..124c9216d99c 100644
--- a/MdePkg/Library/BaseLib/Arm/SetJumpLongJump.asm
+++ b/MdePkg/Library/BaseLib/Arm/SetJumpLongJump.asm
@@ -19,7 +19,6 @@
; value to be returned by SetJump().
;
; If JumpBuffer is NULL, then ASSERT().
-; For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT().
;
; @param JumpBuffer A pointer to CPU context buffer.
;
@@ -34,7 +33,7 @@
SetJump
MOV R3, R13
STM R0, {R3-R12,R14}
- EOR R0, R0
+ MOV R0, #0
BX LR
;/**
@@ -42,7 +41,7 @@ SetJump
;
; Restores the CPU context from the buffer specified by JumpBuffer.
; This function never returns to the caller.
-; Instead is resumes execution based on the state of JumpBuffer.
+; Instead it resumes execution based on the state of JumpBuffer.
;
; @param JumpBuffer A pointer to CPU context buffer.
; @param Value The value to return when the SetJump() context is restored.
@@ -58,6 +57,8 @@ SetJump
InternalLongJump
LDM R0, {R3-R12,R14}
MOV R13, R3
+ CMP R1, #0
+ MOVEQ R1, #1
MOV R0, R1
BX LR