]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add Fx.s
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 25 Aug 2008 02:03:47 +0000 (02:03 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 25 Aug 2008 02:03:47 +0000 (02:03 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5724 6f19259b-4bc3-4df7-8a09-765794883524

EdkCompatibilityPkg/Foundation/Library/Thunk16/Ia32/Fx.S [new file with mode: 0644]
EdkCompatibilityPkg/Foundation/Library/Thunk16/Thunk16Lib_Edk2.inf

diff --git a/EdkCompatibilityPkg/Foundation/Library/Thunk16/Ia32/Fx.S b/EdkCompatibilityPkg/Foundation/Library/Thunk16/Ia32/Fx.S
new file mode 100644 (file)
index 0000000..111b56e
--- /dev/null
@@ -0,0 +1,54 @@
+#*****************************************************************************
+#*
+#*   Copyright (c) 2006, Intel Corporation                                                         
+#*   All rights reserved. This program and the accompanying materials                          
+#*   are licensed and made available under the terms and conditions of the BSD License         
+#*   which accompanies this distribution.  The full text of the license may be found at        
+#*   http://opensource.org/licenses/bsd-license.php                                            
+#*                                                                                             
+#*   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
+#*   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+#*   
+#*   Module Name:
+#*
+#*    Fx.asm
+#*  
+#*   Abstract:
+#*  
+#*    AsmFxRestore and AsmFxSave function
+#*  
+#include <EfiBind.h>
+#------------------------------------------------------------------------------
+
+    .586P: 
+    #.MODEL flat,C
+    .xmm: 
+    .code: 
+#------------------------------------------------------------------------------
+.globl ASM_PFX(AsmFxSave)
+.globl ASM_PFX(AsmFxRestore)
+#------------------------------------------------------------------------------
+# VOID
+# AsmFxSave (
+#   OUT IA32_FX_BUFFER *Buffer
+#   );
+#------------------------------------------------------------------------------
+ASM_PFX(AsmFxSave):
+    movl    4(%esp), %eax
+    fxsave  (%eax)
+    ret
+#AsmFxSave ENDP
+
+#------------------------------------------------------------------------------
+# VOID
+# AsmFxRestore (
+#   IN CONST IA32_FX_BUFFER *Buffer
+#   );
+#------------------------------------------------------------------------------
+ASM_PFX(AsmFxRestore):
+    movl    4(%esp), %eax
+    fxrstor (%eax)
+    ret
+#AsmFxRestore ENDP
+
+
index 01581171df60259c0da34fccbad24476044710d2..7d894b6809f8a9f339ba483faf76a0faecfadeff 100644 (file)
@@ -29,6 +29,7 @@ COMPONENT_TYPE       = LIBRARY
   Ia32/Thunk16.asm  | INTEL \r
   Ia32/Fx.asm       | MSFT\r
   Ia32/Fx.asm       | INTEL\r
+  Ia32/Fx.S         | GCC\r
 \r
 [sources.x64]\r
   X64/Thunk16.asm   | MSFT\r