Changeset 54254 in vbox for trunk/src/VBox/Runtime/common/asm
- Timestamp:
- Feb 17, 2015 10:58:55 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 98321
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/asm/ASMGetIdtrLimit.asm
r54253 r54254 1 1 ; $Id$ 2 2 ;; @file 3 ; IPRT - ASMGetI DTR().3 ; IPRT - ASMGetIdtrLimit(). 4 4 ; 5 5 6 6 ; 7 ; Copyright (C) 2006-201 3Oracle Corporation7 ; Copyright (C) 2006-2015 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 … … 34 35 ;; 35 36 ; Gets the content of the IDTR CPU register. 36 ; @param pIdtr Where to store the IDTR contents. 37 ; msc=rcx, gcc=rdi, x86=[esp+4] 37 ; @returns IDTR.LIMIT in ax 38 38 ; 39 BEGINPROC_EXPORTED ASMGetIDTR 40 %ifdef ASM_CALL64_MSC 41 mov rax, rcx 42 %elifdef ASM_CALL64_GCC 43 mov rax, rdi 44 %elifdef RT_ARCH_X86 45 mov eax, [esp + 4] 46 %else 47 %error "Undefined arch?" 48 %endif 49 sidt [xAX] 39 BEGINPROC_EXPORTED ASMGetIdtrLimit 40 sub xSP, 18h 41 SEH64_ALLOCATE_STACK 18h 42 SEH64_END_PROLOGUE 43 sidt [xSP + 6] 44 mov ax, [xSP + 6] 45 add xSP, 18h 50 46 ret 51 ENDPROC ASMGetI DTR47 ENDPROC ASMGetIdtrLimit 52 48
Note:
See TracChangeset
for help on using the changeset viewer.