- Fixed typo
- Removed unreachable 'dead' loop
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15277
6f19259b-4bc3-4df7-8a09-
765794883524
\r
#undef REG_PAIR\r
#undef REG_ONE\r
-\r
-dead:\r
- b dead\r
ASM_PFX(ArmWriteAuxCr):\r
EL1_OR_EL2(x1)\r
1:msr actlr_el1, x0 // Aux Control Reg (ACTLR) at EL1. Also available in EL2 and EL3\r
- b 3f\r
+ ret\r
2:msr actlr_el2, x0 // Aux Control Reg (ACTLR) at EL1. Also available in EL2 and EL3\r
-3:ret\r
+ ret\r
\r
ASM_PFX(ArmReadAuxCr):\r
EL1_OR_EL2(x1)\r
1:mrs x0, actlr_el1 // Aux Control Reg (ACTLR) at EL1. Also available in EL2 and EL3\r
- b 3f\r
+ ret\r
2:mrs x0, actlr_el2 // Aux Control Reg (ACTLR) at EL1. Also available in EL2 and EL3\r
-3:ret\r
+ ret\r
\r
ASM_PFX(ArmSetTTBR0):\r
EL1_OR_EL2_OR_EL3(x1)\r
ret\r
\r
ASM_PFX(ArmWriteMVBar):\r
- msr vbar_el3, x0 // Excpetion Vector Base address for Monitor on EL3\r
+ msr vbar_el3, x0 // Exception Vector Base address for Monitor on EL3\r
ret\r
\r
ASM_PFX(ArmCallWFE):\r
isb\r
mov sp, r3 @ restore stack pointer\r
ldmfd sp!, {r4-r12, lr} @ restore registers\r
- bx lr @ return (hopefully thumb-safe!) @ return (hopefully thumb-safe!)\r
+ bx lr @ return (hopefully thumb-safe!)\r
\r
ASM_PFX(CPSRRead):\r
mrs r0, cpsr\r
\r
ArmCallWFE\r
wfe\r
- blx lr\r
+ bx lr\r
\r
ArmCallSEV\r
sev\r
- blx lr\r
+ bx lr\r
\r
ArmReadSctlr\r
- mrc p15, 0, R0, c1, c0, 0 // Read SCTLR into R0 (Read control register configuration data)\r
- bx lr\r
+ mrc p15, 0, r0, c1, c0, 0 // Read SCTLR into R0 (Read control register configuration data)\r
+ bx lr\r
\r
END\r
\r
ret\r
\r
-dead:\r
- b dead\r
-\r
ASM_FUNCTION_REMOVE_IF_UNREFERENCED\r
msr spsr_el3, x0\r
ret\r
\r
-dead:\r
- b dead\r
-\r
ASM_FUNCTION_REMOVE_IF_UNREFERENCED\r
//\r
-// Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
+// Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
//\r
// This program and the accompanying materials\r
// are licensed and made available under the terms and conditions of the BSD License\r
ASM_PFX(JumpToPEI):\r
LoadConstantToReg (FixedPcdGet32(PcdFvBaseAddress), x0)\r
blr x0\r
-\r
-dead:\r
- b dead\r
#========================================================================================\r
-# Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
+# Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
# \r
# This program and the accompanying materials \r
# are licensed and made available under the terms and conditions of the BSD License \r
isb\r
pop { r1 }\r
bx lr @ return (hopefully thumb-safe!)\r
-\r
-dead:\r
- b dead\r
\r
ASM_FUNCTION_REMOVE_IF_UNREFERENCED\r