Changeset 87403 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Jan 23, 2021 4:11:18 PM (4 years ago)
- Location:
- trunk/src/VBox/Runtime/common/asm
- Files:
-
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/asm/ASMGetFSBase.asm
r87387 r87403 1 1 ; $Id$ 2 2 ;; @file 3 ; IPRT - ASMGet TR().3 ; IPRT - ASMGetFSBase(). 4 4 ; 5 5 6 6 ; 7 ; Copyright (C) 2006-202 0Oracle Corporation7 ; Copyright (C) 2006-2021 Oracle Corporation 8 8 ; 9 9 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 28 28 ;* Header Files * 29 29 ;******************************************************************************* 30 %define RT_ASM_WITH_SEH64 30 31 %include "iprt/asmdefs.mac" 31 32 … … 33 34 34 35 ;; 35 ; Get the TRregister.36 ; @returns TR.36 ; Get the FS base register. 37 ; @returns FS base 37 38 ; 38 BEGINPROC_EXPORTED ASMGet TR39 str ax40 movzx eax,ax39 BEGINPROC_EXPORTED ASMGetFSBase 40 SEH64_END_PROLOGUE 41 rdfsbase rax 41 42 ret 42 ENDPROC ASMGet TR43 ENDPROC ASMGetFSBase 43 44 -
trunk/src/VBox/Runtime/common/asm/ASMGetGSBase.asm
r87387 r87403 1 1 ; $Id$ 2 2 ;; @file 3 ; IPRT - ASMGet TR().3 ; IPRT - ASMGetGSBase(). 4 4 ; 5 5 6 6 ; 7 ; Copyright (C) 2006-202 0Oracle Corporation7 ; Copyright (C) 2006-2021 Oracle Corporation 8 8 ; 9 9 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 28 28 ;* Header Files * 29 29 ;******************************************************************************* 30 %define RT_ASM_WITH_SEH64 30 31 %include "iprt/asmdefs.mac" 31 32 … … 33 34 34 35 ;; 35 ; Get the TRregister.36 ; @returns TR.36 ; Get the GS base register. 37 ; @returns GS base 37 38 ; 38 BEGINPROC_EXPORTED ASMGet TR39 str ax40 movzx eax,ax39 BEGINPROC_EXPORTED ASMGetGSBase 40 SEH64_END_PROLOGUE 41 rdgsbase rax 41 42 ret 42 ENDPROC ASMGet TR43 ENDPROC ASMGetGSBase 43 44 -
trunk/src/VBox/Runtime/common/asm/ASMSetFSBase.asm
r87387 r87403 1 1 ; $Id$ 2 2 ;; @file 3 ; IPRT - ASM GetTR().3 ; IPRT - ASMSetFSBase(). 4 4 ; 5 5 6 6 ; 7 ; Copyright (C) 2006-202 0Oracle Corporation7 ; Copyright (C) 2006-2021 Oracle Corporation 8 8 ; 9 9 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 28 28 ;* Header Files * 29 29 ;******************************************************************************* 30 %define RT_ASM_WITH_SEH64 30 31 %include "iprt/asmdefs.mac" 31 32 … … 33 34 34 35 ;; 35 ; Get the TRregister.36 ; @ returns TR.36 ; Set the FS base register. 37 ; @param uNewBase msc:rcx gcc:rdi New FS base value. 37 38 ; 38 BEGINPROC_EXPORTED ASMGetTR 39 str ax 40 movzx eax, ax 39 BEGINPROC_EXPORTED ASMSetFSBase 40 SEH64_END_PROLOGUE 41 %ifdef ASM_CALL64_MSC 42 wrfsbase rcx 43 %else 44 wrfsbase rdi 45 %endif 41 46 ret 42 ENDPROC ASM GetTR47 ENDPROC ASMSetFSBase 43 48 -
trunk/src/VBox/Runtime/common/asm/ASMSetGSBase.asm
r87387 r87403 1 1 ; $Id$ 2 2 ;; @file 3 ; IPRT - ASM GetTR().3 ; IPRT - ASMSetGSBase(). 4 4 ; 5 5 6 6 ; 7 ; Copyright (C) 2006-202 0Oracle Corporation7 ; Copyright (C) 2006-2021 Oracle Corporation 8 8 ; 9 9 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 28 28 ;* Header Files * 29 29 ;******************************************************************************* 30 %define RT_ASM_WITH_SEH64 30 31 %include "iprt/asmdefs.mac" 31 32 … … 33 34 34 35 ;; 35 ; Get the TRregister.36 ; @ returns TR.36 ; Set the GS base register. 37 ; @param uNewBase msc:rcx gcc:rdi New GS base value. 37 38 ; 38 BEGINPROC_EXPORTED ASMGetTR 39 str ax 40 movzx eax, ax 39 BEGINPROC_EXPORTED ASMSetGSBase 40 SEH64_END_PROLOGUE 41 %ifdef ASM_CALL64_MSC 42 wrgsbase rcx 43 %else 44 wrgsbase rdi 45 %endif 41 46 ret 42 ENDPROC ASM GetTR47 ENDPROC ASMSetGSBase 43 48
Note:
See TracChangeset
for help on using the changeset viewer.