]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmRealViewEbPkg/SecForPei/Arm/ModuleEntryPoint.S
Enhance EDKII Browser to support flexible HotKey setting.
[mirror_edk2.git] / ArmRealViewEbPkg / SecForPei / Arm / ModuleEntryPoint.S
index f87aa58037aa0fc0b9df96fb6a28056649b72735..57fea68c655393c443cfdb60782232c4df2f5f08 100755 (executable)
@@ -30,6 +30,9 @@
 .globl ASM_PFX(_ModuleEntryPoint)\r
 .globl ASM_PFX(StartupAddr)\r
 \r
+\r
+ASM_PFX(StartupAddr):   .word ASM_PFX(CEntryPoint)\r
+\r
 ASM_PFX(_ModuleEntryPoint):\r
  \r
   // Turn off remapping NOR to 0. We can now use DRAM in low memory\r
@@ -63,13 +66,10 @@ ASM_PFX(_ModuleEntryPoint):
  \r
   // move sec startup address into a data register\r
   // ensure we're jumping to FV version of the code (not boot remapped alias)\r
-#ifndef __APPLE__\r
-// This does not generate a valid relocation for Xcode. Fix me...\r
-  ldr   r4, ASM_PFX(StartupAddr)\r
+  ldr   r4, ASM_PFX(StartupAddr) // Extra level of indirection fixes Xcode relocation issue\r
 \r
   // jump to SEC C code\r
   blx   r4\r
-#endif\r
   \r
 \r
 ASM_PFX(ShouldNeverGetHere):\r