GCC_ASM_EXPORT(_ModuleEntryPoint)\r
ASM_GLOBAL ASM_PFX(mSystemMemoryEnd)\r
\r
-StartupAddr: .8byte ASM_PFX(CEntryPoint)\r
ASM_PFX(mSystemMemoryEnd): .8byte 0\r
\r
ASM_PFX(_ModuleEntryPoint):\r
mov x1, x21\r
mov x2, x22\r
\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
- ldr x4, StartupAddr\r
-\r
// Jump to PrePiCore C code\r
// x0 = MpId\r
// x1 = UefiMemoryBase\r
// x2 = StacksBase\r
- blr x4\r
+ bl ASM_PFX(CEntryPoint)\r
\r
_NeverReturn:\r
b _NeverReturn\r