VirtualBox

Changeset 30736 in vbox


Ignore:
Timestamp:
Jul 8, 2010 12:12:32 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63505
Message:

bootsector2-test1.asm,++: real mode tests.

Location:
trunk/include
Files:
6 edited

Legend:

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

    r30724 r30736  
    3232/** The XXX MMIO register - 124 RW. */
    3333#define VMMDEV_TESTING_MMIO_TODO        (VMMDEV_TESTING_MMIO_BASE + 0x004)
     34/** The real mode selector to use.
     35 * @remarks Requires that the A20 gate is enabled. */
     36#define VMMDEV_TESTING_MMIO_RM_SEL       0xffff
     37/** Calculate the real mode offset of a MMIO register. */
     38#define VMMDEV_TESTING_MMIO_RM_OFF(val)  ((val) - 0xffff0)
    3439
    3540/** The base port of the I/O range used for testing. */
  • trunk/include/VBox/VMMDevTesting.mac

    r30724 r30736  
    11%ifndef ___VBox_VMMDevTesting_h
    22%define ___VBox_VMMDevTesting_h
    3 %define VMMDEV_TESTING_MMIO_BASE        UINT32_C(0x00101000)
    4 %define VMMDEV_TESTING_MMIO_SIZE        UINT32_C(0x00001000)
     3%define VMMDEV_TESTING_MMIO_BASE        0x00101000
     4%define VMMDEV_TESTING_MMIO_SIZE        0x00001000
    55%define VMMDEV_TESTING_MMIO_NOP         (VMMDEV_TESTING_MMIO_BASE + 0x000)
    66%define VMMDEV_TESTING_MMIO_TODO        (VMMDEV_TESTING_MMIO_BASE + 0x004)
     7%define VMMDEV_TESTING_MMIO_RM_SEL       0xffff
     8%define VMMDEV_TESTING_MMIO_RM_OFF(val)  ((val) - 0xffff0)
    79%define VMMDEV_TESTING_IOPORT_BASE      0x0510
    810%define VMMDEV_TESTING_IOPORT_COUNT     0x0010
     
    1012%define VMMDEV_TESTING_IOPORT_TS_LOW    (VMMDEV_TESTING_IOPORT_BASE + 1)
    1113%define VMMDEV_TESTING_IOPORT_TS_HIGH   (VMMDEV_TESTING_IOPORT_BASE + 2)
    12 %define VMMDEV_TESTING_NOP_RET          UINT32_C(0x64726962)
     14%define VMMDEV_TESTING_NOP_RET          0x64726962
    1315%endif
  • trunk/include/VBox/param.mac

    r28828 r30736  
    22%define ___VBox_param_h
    33%define VBOX_MAX_ALLOC_PAGE_COUNT   (256U * _1M / PAGE_SIZE)
    4 %define MM_HYPER_AREA_ADDRESS       UINT32_C(0xa0000000)
     4%define MM_HYPER_AREA_ADDRESS       0xa0000000
    55%define MM_HYPER_AREA_MAX_SIZE      (40U * _1M)
    66%define MM_HYPER_DYNAMIC_SIZE       (16U * PAGE_SIZE)
    7 %define MM_RAM_MIN                  UINT32_C(0x00400000)
     7%define MM_RAM_MIN                  0x00400000
    88%if HC_ARCH_BITS == 64
    99 %define MM_RAM_MAX                 UINT64_C(0x400000000)
     
    1111 %define MM_RAM_MAX                 UINT64_C(0x0E0000000)
    1212%endif
    13 %define MM_RAM_MIN_IN_MB            UINT32_C(4)
     13%define MM_RAM_MIN_IN_MB            4
    1414%if HC_ARCH_BITS == 64
    15  %define MM_RAM_MAX_IN_MB           UINT32_C(16384)
     15 %define MM_RAM_MAX_IN_MB           16384
    1616%else
    17  %define MM_RAM_MAX_IN_MB           UINT32_C(3584)
     17 %define MM_RAM_MAX_IN_MB           3584
    1818%endif
    1919%define MM_RAM_HOLE_SIZE_DEFAULT    (512U * _1M)
  • trunk/include/VBox/various.sed

    r20742 r30736  
    4646s/\([[:space:]][0-9][0-9]*\)ULL\([[:space:]]*\))$/\1\2)/
    4747
     48s/UINT32_C([[:space:]]*\(0[xX][0-9a-fA-F][0-9a-fA-F]*\)[[:space:]]*)/\1/
     49s/UINT32_C([[:space:]]*\([0-9][0-9]*\)[[:space:]]*)/\1/
     50
    4851b end
    4952
  • trunk/include/VBox/x86.mac

    r28828 r30736  
    202202%define X86_DR7_LEN3_MASK                   (3 << 30)
    203203%define X86_DR7_MB1_MASK                    (RT_BIT(10))
    204 %define X86_DR7_L(iBp)                      ( UINT32_C(1) << (iBp * 2) )
    205 %define X86_DR7_G(iBp)                      ( UINT32_C(1) << (iBp * 2 + 1) )
     204%define X86_DR7_L(iBp)                      ( 1 << (iBp * 2) )
     205%define X86_DR7_G(iBp)                      ( 1 << (iBp * 2 + 1) )
    206206%define X86_DR7_RW_EO                       0
    207207%define X86_DR7_RW_WO                       1
  • trunk/include/iprt/asmdefs.mac

    r28800 r30736  
    9494; Global marker which is DECLASM() compatible.
    9595%macro GLOBALNAME 1,
     96%ifndef ASM_FORMAT_BIN
    9697global NAME(%1)
     98%endif
    9799NAME(%1):
    98100%endmacro
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