VirtualBox

Changeset 48992 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Oct 9, 2013 9:55:36 AM (11 years ago)
Author:
vboxsync
Message:

ASMGetSegAttr.asm: shorter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/asm/ASMGetSegAttr.asm

    r48990 r48992  
    4343BEGINPROC_EXPORTED ASMGetSegAttr
    4444%ifdef ASM_CALL64_MSC
    45     mov         r10, rdi
    46     mov         rdi, rcx
     45    and     ecx, 0ffffh
     46    lar     eax, ecx
     47%elifdef ASM_CALL64_GCC
     48    and     edi, 0ffffh
     49    lar     eax, edi
    4750%elifdef RT_ARCH_X86
    48     push        ebp
    49     mov         ebp, esp
    50     push        edi
    51     mov         edi, [ebp + 08h]
     51    movzx   edx, word [esp + 4]
     52    lar     eax, edx
     53%else
     54 %error "Which arch is this?"
    5255%endif
    53 
    54     larl    eax, edi
    55     jz      done
     56    jz      .return
    5657    mov     eax, 0ffffffffh
    57 done:
    58 
    59 %ifdef ASM_CALL64_MSC
    60     mov     rdi, r10
    61 %elifdef RT_ARCH_X86
    62     pop     edi
    63     leave
    64 %endif
     58.return:
    6559    ret
    6660ENDPROC ASMGetSegAttr
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette