]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/Thunk16/Ia32/Fx.S
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Thunk16 / Ia32 / Fx.S
index fcf7ff44d454ea04654d0ed0b5177506e0303249..dd1cb289fc1352793a17b2ad7b98bdf774c49872 100644 (file)
@@ -1,6 +1,6 @@
 #*****************************************************************************\r
 #*\r
-#*   Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+#*   Copyright (c) 2006 - 2010, 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
@@ -51,4 +51,26 @@ ASM_PFX(AsmFxRestore):
     ret\r
 #AsmFxRestore ENDP\r
 \r
+#------------------------------------------------------------------------------\r
+# UINTN\r
+# AsmGetEflags (\r
+#   VOID\r
+#   );\r
+#------------------------------------------------------------------------------\r
+ASM_PFX(AsmGetEflags):\r
+    pushfl\r
+    pop   %eax\r
+    ret\r
+#AsmGetEflags ENDP\r
 \r
+#------------------------------------------------------------------------------\r
+# VOID\r
+# AsmSetEflags (\r
+#   IN UINTN   Eflags\r
+#   );\r
+#------------------------------------------------------------------------------\r
+ASM_PFX(AsmSetEflags):\r
+    push  4(%esp)\r
+    popfl\r
+    ret\r
+#AsmSetEflags ENDP\r