]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/FxRestore.S
Fixed GCC 4.4 build issue due to incorrect prefix. Now using ASM_PFX to correctly...
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / FxRestore.S
index f88d3df09b32b1983bee3ade8ecd8d7b29e70f95..73960c7cfdd36f3a2cda7a9563bed36400425aba 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006, Intel Corporation\r
+# Copyright (c) 2006 - 2008, Intel Corporation\r
 # All rights reserved. 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
@@ -11,7 +11,7 @@
 #\r
 # Module Name:\r
 #\r
-#   FxRestore.Asm\r
+#   FxRestore.S\r
 #\r
 # Abstract:\r
 #\r
@@ -21,7 +21,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 \r
-.globl _InternalX86FxRestore\r
+ASM_GLOBAL ASM_PFX(InternalX86FxRestore)\r
 \r
 #------------------------------------------------------------------------------\r
 # VOID\r
@@ -30,7 +30,7 @@
 #   IN CONST IA32_FX_BUFFER *Buffer\r
 #   );\r
 #------------------------------------------------------------------------------\r
-_InternalX86FxRestore:\r
-    movl    4(%esp), %eax\r
+ASM_PFX(InternalX86FxRestore):\r
+    movl    4(%esp), %eax               # Buffer must be 16-byte aligned\r
     fxrstor (%eax)\r
     ret\r