diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-04-19 09:22:38 +0200 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-04-29 18:12:52 +0200 |
commit | c4cc609dc8cf1fe96ae331c61b7803be0fa23e03 (patch) | |
tree | 479d0bb62fd6140ed13f297814425db483132c84 /ArmPlatformPkg | |
parent | 3dece14502b972c6b68525c1d7dba9088611da92 (diff) | |
download | edk2-c4cc609dc8cf1fe96ae331c61b7803be0fa23e03.tar.gz edk2-c4cc609dc8cf1fe96ae331c61b7803be0fa23e03.tar.bz2 edk2-c4cc609dc8cf1fe96ae331c61b7803be0fa23e03.zip |
ArmPlatformPkg/PrePi: allow unicore version to be used on MP hardware
When combining UEFI firmware built from Tianocore with ARM Trusted
Firmware running in EL3, it is the responsibility of ATF that only
a single core enters the UEFI firmware in EL2, and the remaining cores
are released directly to the OS via PSCI SMC calls.
In this case, we don't need the MpCore flavor of PrePi or PrePeiCore,
but the UniCore flavor currently checks the CPU identification registers
directly, and refuses to proceed if the boot CPU is part of a MpCore
system.
So drop the ASSERT()'s that implement this check.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'ArmPlatformPkg')
-rw-r--r-- | ArmPlatformPkg/PrePi/MainUniCore.c | 5 | ||||
-rw-r--r-- | ArmPlatformPkg/PrePi/PrePi.c | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/ArmPlatformPkg/PrePi/MainUniCore.c b/ArmPlatformPkg/PrePi/MainUniCore.c index 49b02338eb..11b9f462bb 100644 --- a/ArmPlatformPkg/PrePi/MainUniCore.c +++ b/ArmPlatformPkg/PrePi/MainUniCore.c @@ -21,11 +21,6 @@ PrimaryMain ( IN UINT64 StartTimeStamp
)
{
- DEBUG_CODE_BEGIN();
- // On MPCore system, PeiMpCore.inf should be used instead of PeiUniCore.inf
- ASSERT(ArmIsMpCore() == 0);
- DEBUG_CODE_END();
-
PrePiMain (UefiMemoryBase, StacksBase, StartTimeStamp);
// We must never return
diff --git a/ArmPlatformPkg/PrePi/PrePi.c b/ArmPlatformPkg/PrePi/PrePi.c index 8740b2a9e8..36928c65a7 100644 --- a/ArmPlatformPkg/PrePi/PrePi.c +++ b/ArmPlatformPkg/PrePi/PrePi.c @@ -183,8 +183,6 @@ CEntryPoint ( {
UINT64 StartTimeStamp;
- ASSERT(!ArmIsMpCore() || (PcdGet32 (PcdCoreCount) > 1));
-
// Initialize the platform specific controllers
ArmPlatformInitialize (MpId);
|