#------------------------------------------------------------------------------\r
#\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
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
# Abstract:\r
#\r
#------------------------------------------------------------------------------\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