#------------------------------------------------------------------------------\r
#\r
-# Copyright (c) 2014, 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
+# Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
# Abstract:\r
#\r
ASM_GLOBAL ASM_PFX(SecSwitchStack)\r
ASM_PFX(SecSwitchStack):\r
#\r
-# Save three register: eax, ebx, ecx\r
+# Save four registers: eax, ebx, ecx, edx\r
#\r
- push %eax\r
- push %ebx\r
- push %ecx\r
- push %edx\r
+ pushl %eax\r
+ pushl %ebx\r
+ pushl %ecx\r
+ pushl %edx\r
\r
#\r
# !!CAUTION!! this function address's is pushed into stack after\r
#\r
# Fixup the ebp point to permenent memory\r
#\r
-\r
movl %ebp, %eax\r
subl %ebx, %eax\r
addl %ecx, %eax\r
#\r
# Fixup callee's ebp point for PeiDispatch\r
#\r
- movl %ebp, %eax\r
- subl %ebx, %eax\r
- addl %ecx, %eax\r
- movl %eax, %ebp # From now, ebp is pointed to permenent memory\r
-\r
- pop %edx\r
- pop %ecx\r
- pop %ebx\r
- pop %eax\r
+# movl %ebp, %eax\r
+# subl %ebx, %eax\r
+# addl %ecx, %eax\r
+# movl %eax, %ebp # From now, ebp is pointed to permenent memory\r
+ popl %edx\r
+ popl %ecx\r
+ popl %ebx\r
+ popl %eax \r
ret
\ No newline at end of file