;------------------------------------------------------------------------------\r
;\r
-; Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
; This program and the accompanying materials\r
; are licensed and made available under the terms and conditions of the BSD License\r
; which accompanies this distribution. The full text of the license may be found at\r
;------------------------------------------------------------------------------\r
EXTERNDEF C MeasurePoint:PROC\r
Pei2LoaderSwitchStack PROC C PUBLIC\r
- jmp Loader2PeiSwitchStack\r
+ xor eax, eax\r
+ jmp FspSwitchStack\r
Pei2LoaderSwitchStack ENDP\r
\r
;------------------------------------------------------------------------------\r
; VOID\r
; )\r
;------------------------------------------------------------------------------\r
-EXTERNDEF C SwapStack:PROC\r
Loader2PeiSwitchStack PROC C PUBLIC\r
+ jmp FspSwitchStack\r
+Loader2PeiSwitchStack ENDP\r
+\r
+;------------------------------------------------------------------------------\r
+; UINT32\r
+; EFIAPI\r
+; FspSwitchStack (\r
+; VOID\r
+; )\r
+;------------------------------------------------------------------------------\r
+EXTERNDEF C SwapStack:PROC\r
+FspSwitchStack PROC C PUBLIC\r
; Save current contexts\r
- push offset exit\r
+ push eax\r
pushfd\r
cli\r
pushad\r
add esp, 8\r
popad\r
popfd\r
-exit:\r
+ add esp, 4\r
ret\r
-Loader2PeiSwitchStack ENDP\r
+FspSwitchStack ENDP\r
\r
END\r