]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFspPkg/FspSecCore/Ia32/Stacks.s
IntelFspPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / IntelFspPkg / FspSecCore / Ia32 / Stacks.s
index 6c36c25d2b4b8f9ab3b9da7d230892ea5d961028..c62a8fe7e4a1ae4f4eefd7d3de9d95e1ad7d9d04 100644 (file)
@@ -1,13 +1,7 @@
 #------------------------------------------------------------------------------\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
@@ -28,12 +22,12 @@ ASM_GLOBAL ASM_PFX(SecSwitchStack)
 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
@@ -67,7 +61,6 @@ ASM_PFX(SecSwitchStack):
 #\r
 # Fixup the ebp point to permenent memory\r
 #\r
-\r
     movl   %ebp, %eax\r
     subl   %ebx, %eax\r
     addl   %ecx, %eax\r
@@ -76,13 +69,12 @@ ASM_PFX(SecSwitchStack):
 #\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