]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/Thunk16/X64/Fx.asm
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Thunk16 / X64 / Fx.asm
index 77490b44b5e186bb0f483bfff9d5025a28da8891..ab4a97f23a0ab80f31aab30236117c1de46de912 100644 (file)
@@ -1,7 +1,7 @@
 ;*****************************************************************************\r
 ;*\r
-;*   Copyright (c) 2006, Intel Corporation                                                         \r
-;*   All rights reserved. This program and the accompanying materials                          \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
 ;*   http://opensource.org/licenses/bsd-license.php                                            \r
@@ -43,4 +43,28 @@ AsmFxRestore  PROC
     ret\r
 AsmFxRestore  ENDP\r
 \r
+;------------------------------------------------------------------------------\r
+; UINTN\r
+; AsmGetEflags (\r
+;   VOID\r
+;   );\r
+;------------------------------------------------------------------------------\r
+AsmGetEflags PROC\r
+    pushfq\r
+    pop   rax\r
+    ret\r
+AsmGetEflags ENDP\r
+\r
+;------------------------------------------------------------------------------\r
+; VOID\r
+; AsmSetEflags (\r
+;   IN UINTN   Eflags\r
+;   );\r
+;------------------------------------------------------------------------------\r
+AsmSetEflags PROC\r
+    push  rcx\r
+    popfq\r
+    ret\r
+AsmSetEflags ENDP\r
+\r
     END\r