summaryrefslogtreecommitdiff
path: root/ArmVirtPkg/PrePi/AArch64
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-11-17 10:54:59 +0000
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2017-11-23 16:05:02 +0000
commit888559acf98ae954af0418c1f72bc603aa9b9e88 (patch)
treecfd51041a070ec3fad8f13eb34b33be53042197f /ArmVirtPkg/PrePi/AArch64
parent16d1322aa28ae92d8f533081981041c9470a0f2b (diff)
downloadedk2-888559acf98ae954af0418c1f72bc603aa9b9e88.zip
edk2-888559acf98ae954af0418c1f72bc603aa9b9e88.tar.gz
edk2-888559acf98ae954af0418c1f72bc603aa9b9e88.tar.bz2
ArmVirtPkg/PrePi: remove bogus primary core check
QEMU and KVM based ARM/AARCH64 virtual machines only enter UEFI on a single core, so ArmPlatformIsPrimaryCore() always returns true. And even if it didn't, our code does absolutely nothing meaningful based on its return value, so don't bother calling it, and remove another frivolous dependency on ArmPlatformLib. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'ArmVirtPkg/PrePi/AArch64')
-rw-r--r--ArmVirtPkg/PrePi/AArch64/ModuleEntryPoint.S7
1 files changed, 0 insertions, 7 deletions
diff --git a/ArmVirtPkg/PrePi/AArch64/ModuleEntryPoint.S b/ArmVirtPkg/PrePi/AArch64/ModuleEntryPoint.S
index cc8b47e..7a9c0c3 100644
--- a/ArmVirtPkg/PrePi/AArch64/ModuleEntryPoint.S
+++ b/ArmVirtPkg/PrePi/AArch64/ModuleEntryPoint.S
@@ -128,13 +128,6 @@ _GetStackBase:
MOV32 (x3, FixedPcdGet32(PcdCPUCoreSecondaryStackSize))
bl ASM_PFX(ArmPlatformStackSet)
- // Is it the Primary Core ?
- mov x0, x10
- bl ASM_PFX(ArmPlatformIsPrimaryCore)
- cmp x0, #1
- bne _PrepareArguments
-
-_PrepareArguments:
mov x0, x20
mov x1, x21
mov x2, x22