diff options
author | Leif Lindholm <leif.lindholm@oss.qualcomm.com> | 2025-03-20 11:38:11 +0000 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-03-31 14:36:54 +0000 |
commit | a088d9ceb0c2400537290b6e3f10b75149d4cd1c (patch) | |
tree | b8e57e88d7cfb298d11616627b319f8dbde6483c | |
parent | ad6639cf3ebe87892b648ba4771bcc73766e9cc1 (diff) | |
download | edk2-a088d9ceb0c2400537290b6e3f10b75149d4cd1c.zip edk2-a088d9ceb0c2400537290b6e3f10b75149d4cd1c.tar.gz edk2-a088d9ceb0c2400537290b6e3f10b75149d4cd1c.tar.bz2 |
ArmPlatformPkg/PeilessSec: drop _SetSVCMode sequence for Arm
_SetSVCMode sits shortly after _ModuleEntryPoint, to switch into SVC mode
and mask FIQ and IRQ exceptions (making it badly named to boot).
But this should always be the state we start executing in, so most
likely this is another remnant of a time when the edk2 image also
contained Secure Monitor code, which has not been supported for some
time now.
Delete the whole stanza and see if anything breaks.
Signed-off-by: Leif Lindholm <leif.lindholm@oss.qualcomm.com>
-rw-r--r-- | ArmPlatformPkg/PeilessSec/Arm/ModuleEntryPoint.S | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ArmPlatformPkg/PeilessSec/Arm/ModuleEntryPoint.S b/ArmPlatformPkg/PeilessSec/Arm/ModuleEntryPoint.S index fc28939..6b38b86 100644 --- a/ArmPlatformPkg/PeilessSec/Arm/ModuleEntryPoint.S +++ b/ArmPlatformPkg/PeilessSec/Arm/ModuleEntryPoint.S @@ -13,11 +13,6 @@ ASM_FUNC(_ModuleEntryPoint) // Do early platform specific actions
bl ASM_PFX(ArmPlatformPeiBootAction)
-_SetSVCMode:
- // Enter SVC mode, Disable FIQ and IRQ
- mov r1, #(CPSR_MODE_SVC | CPSR_IRQ | CPSR_FIQ)
- msr CPSR_c, r1
-
// Check if we can install the stack at the top of the System Memory or if we need
// to install the stacks at the bottom of the Firmware Device (case the FD is located
// at the top of the DRAM)
|