#------------------------------------------------------------------------------\r
ASM_GLOBAL ASM_PFX(Pei2LoaderSwitchStack)\r
ASM_PFX(Pei2LoaderSwitchStack):\r
- jmp ASM_PFX(Loader2PeiSwitchStack)\r
+ xorl %eax, %eax\r
+ jmp ASM_PFX(FspSwitchStack)\r
\r
#------------------------------------------------------------------------------\r
# UINT32\r
# EFIAPI\r
# Loader2PeiSwitchStack (\r
+# VOID\r
# )\r
#------------------------------------------------------------------------------\r
ASM_GLOBAL ASM_PFX(Loader2PeiSwitchStack)\r
ASM_PFX(Loader2PeiSwitchStack):\r
+ jmp ASM_PFX(FspSwitchStack)\r
+\r
+#------------------------------------------------------------------------------\r
+# UINT32\r
+# EFIAPI\r
+# FspSwitchStack (\r
+# VOID\r
+# )\r
+#------------------------------------------------------------------------------\r
+ASM_GLOBAL ASM_PFX(FspSwitchStack)\r
+ASM_PFX(FspSwitchStack):\r
#\r
#Save current contexts\r
#\r
- push $exit\r
+ push %eax\r
pushf\r
cli\r
pusha\r
add $0x08,%esp\r
popa\r
popf\r
-exit:\r
+ add $0x04,%esp\r
ret\r
\r
\r