summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Xu <xuwei5@huawei.com>2014-08-06 16:44:33 +0800
committerWei Xu <xuwei5@huawei.com>2014-10-10 17:26:21 +0800
commit1d539510fb864e1a02411c39aef35d5076d6d63e (patch)
treed60ad457d822457aedd1e67c764a0b2a10d0e83f
parentd9a0f12e86fb75ec9173d00d050a5c4545efca8b (diff)
HisiPkg: D01: use ArmPlatformGetCorePosition to replace GET_CORE_POS
because GET_CORE_POS macro has been removed. Signed-off-by: Wei Xu <xuwei5@huawei.com>
-rw-r--r--HisiPkg/D01BoardPkg/Sec/Sec/Sec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/HisiPkg/D01BoardPkg/Sec/Sec/Sec.c b/HisiPkg/D01BoardPkg/Sec/Sec/Sec.c
index 31b2669f8..8412f9ab0 100644
--- a/HisiPkg/D01BoardPkg/Sec/Sec/Sec.c
+++ b/HisiPkg/D01BoardPkg/Sec/Sec/Sec.c
@@ -106,7 +106,7 @@ CEntryPoint (
((PcdGet32(PcdCPUCoresSecMonStackBase) != 0) && (PcdGet32(PcdCPUCoreSecMonStackSize) != 0)));
// Enter Monitor Mode
- enter_monitor_mode ((UINTN)TrustedWorldInitialization, MpId, SecBootMode, (VOID*)(PcdGet32(PcdCPUCoresSecMonStackBase) + (PcdGet32(PcdCPUCoreSecMonStackSize) * (GET_CORE_POS(MpId) + 1))));
+ enter_monitor_mode ((UINTN)TrustedWorldInitialization, MpId, SecBootMode, (VOID*)(PcdGet32(PcdCPUCoresSecMonStackBase) + (PcdGet32(PcdCPUCoreSecMonStackSize) * (ArmPlatformGetCorePosition(MpId) + 1))));
} else {
if (((MpId) & PcdGet32(PcdArmPrimaryCoreMask)) == PcdGet32(PcdArmPrimaryCore)) {
SerialPrint ("Trust Zone Configuration is disabled\n\r");