diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-22 23:07:55 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-22 23:07:55 +0000 |
commit | c524ffbb6762dd7b98108638caa4a25eaf7fcf6b (patch) | |
tree | c123ebdb7c4d168677fc85c04981ab85250e2c36 /ArmPlatformPkg/PrePi/ModuleEntryPoint.asm | |
parent | 009f583fa00404ea243cc5b75f1a4ea4f6bc0c18 (diff) | |
download | edk2-platforms-c524ffbb6762dd7b98108638caa4a25eaf7fcf6b.tar.xz |
ArmPlatformPkg/PrePi: Removed the dependency on 'PcdCPUCoresNonSecStackBase'
In PrePi the StackBase is automatically calculated from the top of the memory.
The information is now passed from the assembly files to the C code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12418 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/PrePi/ModuleEntryPoint.asm')
-rw-r--r-- | ArmPlatformPkg/PrePi/ModuleEntryPoint.asm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ArmPlatformPkg/PrePi/ModuleEntryPoint.asm b/ArmPlatformPkg/PrePi/ModuleEntryPoint.asm index 2c798d09d7..5b56e66b9b 100644 --- a/ArmPlatformPkg/PrePi/ModuleEntryPoint.asm +++ b/ArmPlatformPkg/PrePi/ModuleEntryPoint.asm @@ -134,14 +134,21 @@ _InitGlobals _PrepareArguments
+ mov r0, r5
+ mov r1, r6
+ mov r2, r7
+ mov r3, sp
+
// Move sec startup address into a data register
// Ensure we're jumping to FV version of the code (not boot remapped alias)
- ldr r2, StartupAddr
+ ldr r4, StartupAddr
// Jump to PrePiCore C code
// r0 = MpId
// r1 = UefiMemoryBase
- blx r2
+ // r2 = StacksBase
+ // r3 = GlobalVariableBase
+ blx r4
_NeverReturn
b _NeverReturn
|