audk/MdePkg/Library/BaseLib/Ia32/WriteEflags.nasm
2025-04-14 11:36:10 +03:00

34 lines
728 B
NASM

;------------------------------------------------------------------------------
;
; Copyright (c) 2024, Mikhail Krichanov. All rights reserved.
; SPDX-License-Identifier: BSD-3-Clause
;
; Module Name:
;
; WriteEflags.Asm
;
; Abstract:
;
; AsmWriteEflags function
;
; Notes:
;
;------------------------------------------------------------------------------
DEFAULT REL
SECTION .text
;------------------------------------------------------------------------------
; UINTN
; EFIAPI
; AsmWriteEflags (
; UINTN Eflags
; );
;------------------------------------------------------------------------------
global ASM_PFX(AsmWriteEflags)
ASM_PFX(AsmWriteEflags):
push ecx
popfd
mov eax, ecx
ret