VirtualBox

Changeset 74 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jan 16, 2007 5:26:30 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17515
Message:

64-bit/32-bit register macros. RTGCPHYS and RTHCPHYS macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asmdefs.mac

    r1 r74  
    401401
    402402
     403
     404;; @def RTHCPHYS_DEF
     405; The pesudo-instruction used to declare an initialized host physical address.
     406%define RTHCPHYS_DEF    dq
     407
     408;; @def RTHCPTR_RES
     409; The pesudo-instruction used to declare (=reserve space for) an uninitialized
     410; host physical address variable
     411%define RTHCPHYS_RES    resq
     412
     413;; @def RTHCPTR_PRE
     414; The memory operand prefix used for a host physical address.
     415%define RTHCPHYS_PRE    qword
     416
     417;; @def RTHCPHYS_CB
     418; The size in bytes of a host physical address.
     419%define RTHCPHYS_CB     8
     420
     421
     422
     423;; @def RTGCPHYS_DEF
     424; The pesudo-instruction used to declare an initialized guest physical address.
     425%define RTGCPHYS_DEF    dd
     426
     427;; @def RTGCPTR_RES
     428; The pesudo-instruction used to declare (=reserve space for) an uninitialized
     429; guest physical address variable
     430%define RTGCPHYS_RES    resd
     431
     432;; @def RTGCPTR_PRE
     433; The memory operand prefix used for a guest physical address.
     434%define RTGCPHYS_PRE    dword
     435
     436;; @def RTGCPHYS_CB
     437; The size in bytes of a guest physical address.
     438%define RTGCPHYS_CB     4
     439
     440
     441
    403442;;
    404443; The size of the long double C/C++ type.
     
    415454  %define RTLRD_CB          16
    416455%endif
     456
    417457
    418458
     
    464504%endif
    465505
    466 %endif
     506
     507
     508;; @def xS
     509; The stack unit size  / The register unit size.
     510
     511;; @def xSP
     512; The stack pointer register (RSP or ESP).
     513
     514;; @def xBP
     515; The base pointer register (RBP or ESP).
     516
     517;; @def xAX
     518; RAX or EAX depending on context.
     519
     520;; @def xBX
     521; RBX or EBX depending on context.
     522
     523;; @def xCX
     524; RCX or ECX depending on context.
     525
     526;; @def xDX
     527; RDX or EDX depending on context.
     528
     529;; @def xDI
     530; RDI or EDI depending on context.
     531
     532;; @def xSI
     533; RSI or ESI depending on context.
     534
     535%ifdef __AMD64__
     536 %define xS  8
     537 %define xSP rsp
     538 %define xBP rbp
     539 %define xAX rax
     540 %define xBX rbx
     541 %define xCX rcx
     542 %define xDX rdx
     543 %define xDI rdi
     544 %define xSI rsi
     545%else
     546 %define xS  4
     547 %define xSP esp
     548 %define xBP ebp
     549 %define xAX eax
     550 %define xBX ebx
     551 %define xCX ecx
     552 %define xDX edx
     553 %define xDI edi
     554 %define xSI esi
     555%endif
     556
     557%endif
Note: See TracChangeset for help on using the changeset viewer.

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