VirtualBox

Changeset 58703 in vbox for trunk


Ignore:
Timestamp:
Nov 16, 2015 4:23:36 PM (9 years ago)
Author:
vboxsync
Message:

iprt/types.h: Introduced RTCCUINTXREG and RTCCINTXREG types for dealing with 32-bit registers in 16-bit mode (ARCH_BITS == 16).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/types.h

    r58625 r58703  
    15671567typedef RTCCINTREG const       *PCRTCCINTREG;
    15681568
     1569
     1570/** Unsigned integer register in the current context.
     1571 * @remarks This is for dealing with EAX in 16-bit mode. */
     1572#if ARCH_BITS == 16 && defined(RT_ARCH_X86)
     1573typedef uint32_t                RTCCUINTXREG;
     1574#else
     1575typedef RTCCUINTREG             RTCCUINTXREG;
     1576#endif
     1577/** Pointer to an unsigned integer register in the current context. */
     1578typedef RTCCUINTREG            *PRTCCUINTREG;
     1579/** Pointer to a const unsigned integer register in the current context. */
     1580typedef RTCCUINTREG const      *PCRTCCUINTREG;
     1581
     1582/** Signed integer extended register in the current context.
     1583 * @remarks This is for dealing with EAX in 16-bit mode. */
     1584#if ARCH_BITS == 16 && defined(RT_ARCH_X86)
     1585typedef int32_t                 RTCCINTXREG;
     1586#else
     1587typedef RTCCINTREG              RTCCINTXREG;
     1588#endif
     1589/** Pointer to a signed integer extended register in the current context. */
     1590typedef RTCCINTXREG            *PRTCCINTXREG;
     1591/** Pointer to a const signed integer extended register in the current
     1592 * context. */
     1593typedef RTCCINTXREG const      *PCRTCCINTXREG;
     1594
    15691595/** @} */
    15701596
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