VirtualBox

Changeset 36220 in vbox for trunk/include


Ignore:
Timestamp:
Mar 9, 2011 10:57:45 AM (14 years ago)
Author:
vboxsync
Message:

GIP: Force a couple of aCPUs accesses within bounds.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r35855 r36220  
    135135typedef SUPGIPCPU *PSUPGIPCPU;
    136136
     137/** The number of CPUs covered by the GIP.
     138 * @remarks Must be a power of two! */
     139#define SUPGLOBALINFOPAGE_CPUS      32
     140
    137141/**
    138142 * Global Information Page.
     
    167171     * If u32Mode == SUPGIPMODE_ASYNC_TSC then the CPU ACPI ID is used as an
    168172     * index into the array. */
    169     SUPGIPCPU           aCPUs[32];
     173    SUPGIPCPU           aCPUs[SUPGLOBALINFOPAGE_CPUS];
    170174} SUPGLOBALINFOPAGE;
    171175AssertCompile(sizeof(SUPGLOBALINFOPAGE) <= 0x1000);
  • trunk/include/VBox/sup.mac

    r28800 r36220  
    2828%define ___VBox_sup_mac
    2929
     30%define SUPGLOBALINFOPAGE_CPUS  32
    3031
    3132struc SUPGIPCPU
     
    5253    .u64NanoTSLastUpdateHz      resq 1
    5354    .au32Padding1               resd 56
    54     .aCPUs                      resb (SUPGIPCPU_size*32)
     55    .aCPUs                      resb (SUPGIPCPU_size*SUPGLOBALINFOPAGE_CPUS)
    5556endstruc
    5657
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