diff options
Diffstat (limited to 'ArmPlatformPkg/PrePi')
-rwxr-xr-x | ArmPlatformPkg/PrePi/ModuleEntryPoint.S | 6 | ||||
-rw-r--r-- | ArmPlatformPkg/PrePi/ModuleEntryPoint.asm | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ArmPlatformPkg/PrePi/ModuleEntryPoint.S b/ArmPlatformPkg/PrePi/ModuleEntryPoint.S index ed44710a60..75728c983f 100755 --- a/ArmPlatformPkg/PrePi/ModuleEntryPoint.S +++ b/ArmPlatformPkg/PrePi/ModuleEntryPoint.S @@ -127,10 +127,10 @@ _SetGlobals: mov r3, sp
mov r2, #0x0
_InitGlobals:
- str r2, [r3], #4
cmp r3, r1
- bne _InitGlobals
-
+ beq _PrepareArguments
+ str r2, [r3], #4
+ b _InitGlobals
_PrepareArguments:
mov r0, r5
diff --git a/ArmPlatformPkg/PrePi/ModuleEntryPoint.asm b/ArmPlatformPkg/PrePi/ModuleEntryPoint.asm index 0f14d498d7..5392e80925 100644 --- a/ArmPlatformPkg/PrePi/ModuleEntryPoint.asm +++ b/ArmPlatformPkg/PrePi/ModuleEntryPoint.asm @@ -128,10 +128,10 @@ _SetGlobals mov r3, sp
mov r2, #0x0
_InitGlobals
- str r2, [r3], #4
cmp r3, r1
- bne _InitGlobals
-
+ beq _PrepareArguments
+ str r2, [r3], #4
+ b _InitGlobals
_PrepareArguments
mov r0, r5
|