Changeset 78425 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- May 7, 2019 10:15:39 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 130424
- Location:
- trunk/src/VBox/Runtime/common/asm
- Files:
-
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/asm/ASMGetFlags.asm
r78424 r78425 1 ; $Id$ 1 2 ;; @file 2 3 ; IPRT - ASMGetFlags(). … … 32 33 33 34 BEGINPROC_EXPORTED ASMGetFlags 35 %if ARCH_BITS == 32 36 pushfd 37 %else 34 38 pushf 35 pop rax 39 %endif 40 pop xAX 36 41 ret 37 42 ENDPROC ASMGetFlags -
trunk/src/VBox/Runtime/common/asm/ASMSetFlags.asm
r78424 r78425 1 ; $Id$ 1 2 ;; @file 2 3 ; IPRT - ASMSetFlags(). … … 35 36 ; @param rcx eflags 36 37 BEGINPROC_EXPORTED ASMSetFlags 38 %if ARCH_BITS == 64 39 %ifdef ASM_CALL64_GCC 40 push rdi 41 %else 37 42 push rcx 43 %endif 38 44 popfq 45 %elif ARCH_BITS == 32 46 push dword [esp + 4] 47 popfd 48 %elif ARCH_BITS == 16 49 push bp 50 mov bp, sp 51 push word [bp + 2 + 2] 52 popf 53 leave 54 %else 55 %error ARCH_BITS 56 %endif 39 57 ret 40 58 ENDPROC ASMSetFlags
Note:
See TracChangeset
for help on using the changeset viewer.