VirtualBox

Changeset 40878 in vbox for trunk/include


Ignore:
Timestamp:
Apr 11, 2012 8:44:41 PM (13 years ago)
Author:
vboxsync
Message:

Working on the 64-bit probe argument issue for 32-bit hosts...

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxTpG.h

    r40857 r40878  
    9595
    9696
     97/** @name VTG type flags
     98 * @{ */
     99/** Masking out the fixed size if given. */
     100#define VTG_TYPE_SIZE_MASK      UINT32_C(0x000000ff)
     101/** Indicates that VTG_TYPE_SIZE_MASK can be applied, UNSIGNED or SIGNED is
     102 * usually set as well, so may PHYS. */
     103#define VTG_TYPE_FIXED_SIZED    RT_BIT_32(8)
     104/** It's a pointer type, the size is given by the context the probe fired in. */
     105#define VTG_TYPE_POINTER        RT_BIT_32(9)
     106/** A context specfic pointer or address, consult VTG_TYPE_CTX_XXX. */
     107#define VTG_TYPE_CTX_POINTER    RT_BIT_32(10)
     108/** The type has the same size as the host architecture. */
     109#define VTG_TYPE_HC_ARCH_SIZED  RT_BIT_32(11)
     110/** The type applies to ring-3 context. */
     111#define VTG_TYPE_CTX_R3         RT_BIT_32(24)
     112/** The type applies to ring-0 context. */
     113#define VTG_TYPE_CTX_R0         RT_BIT_32(25)
     114/** The type applies to raw-mode context. */
     115#define VTG_TYPE_CTX_RC         RT_BIT_32(26)
     116/** The type applies to guest context. */
     117#define VTG_TYPE_CTX_GST        RT_BIT_32(27)
     118/** The type context mask. */
     119#define VTG_TYPE_CTX_MASK       UINT32_C(0x0f000000)
     120/** The type is a physical address. */
     121#define VTG_TYPE_PHYS           RT_BIT_32(29)
     122/** The type is unsigned. */
     123#define VTG_TYPE_UNSIGNED       RT_BIT_32(30)
     124/** The type is signed. */
     125#define VTG_TYPE_SIGNED         RT_BIT_32(31)
     126/** @} */
     127
     128/**
     129 * Checks if the VTG type flags indicates a large fixed size argument.
     130 */
     131#define VTG_TYPE_IS_LARGE(a_fType) \
     132    ( ((a_fType) & VTG_TYPE_SIZE_MASK) > 4 && ((a_fType) & VTG_TYPE_FIXED_SIZED) )
     133
     134
    97135/**
    98136 * VTG argument descriptor.
     
    101139{
    102140    VTGSTROFF       offType;
    103     VTGSTROFF       offName;
     141    uint32_t        fType;
    104142} VTGDESCARG;
    105143/** Pointer to an argument descriptor. */
     
    113151{
    114152    uint8_t         cArgs;
    115     uint8_t         abReserved[3];
     153    uint8_t         fHaveLargeArgs;
     154    uint8_t         abReserved[2];
    116155    VTGDESCARG      aArgs[1];
    117156} VTGDESCARGLIST;
     
    228267
    229268/** The current VTGOBJHDR::szMagic value. */
    230 #define VTGOBJHDR_MAGIC     "VTG Object Header v1.2\0"
     269#define VTGOBJHDR_MAGIC     "VTG Object Header v1.3\0"
    231270
    232271/** The name of the VTG data object header symbol in the object file. */
  • trunk/include/VBox/err.h

    r40818 r40878  
    16711671/** The tracer cannot open it self in the same session. */
    16721672#define VERR_SUPDRV_TRACER_CANNOT_OPEN_SELF         (-3729)
     1673/** Bad argument flags. */
     1674#define VERR_SUPDRV_TRACER_BAD_ARG_FLAGS            (-3730)
    16731675/** @} */
    16741676
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