VirtualBox

Changeset 4388 in vbox for trunk/src/VBox/VMM/MMInternal.h


Ignore:
Timestamp:
Aug 27, 2007 2:26:05 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23948
Message:

Shadow ROM emulation. Clear the RESERVED flag for ROM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/MMInternal.h

    r4071 r4388  
    503503
    504504/**
     505 * A registered Rom range.
     506 *
     507 * This is used to track ROM registrations both for debug reasons
     508 * and for resetting shadow ROM at reset.
     509 *
     510 * This is allocated of the MMR3Heap and thus only accessibel from ring-3.
     511 */
     512typedef struct MMROMRANGE
     513{
     514    /** Pointer to the next */
     515    struct MMROMRANGE  *pNext;
     516    /** Address of the range. */
     517    RTGCPHYS            GCPhys;
     518    /** Size of the range. */
     519    uint32_t            cbRange;
     520    /** Shadow ROM? */
     521    bool                fShadow;
     522    /** Is the shadow ROM currently wriable? */
     523    bool                fWritable;
     524    /** The address of the virgin ROM image for shadow ROM. */
     525    const void         *pvBinary;
     526    /** The address of the guest RAM that's shadowing the ROM. (lazy bird) */
     527    void               *pvCopy;
     528    /** The ROM description. */
     529    const char         *pszDesc;
     530} MMROMRANGE;
     531/** Pointer to a ROM range. */
     532typedef MMROMRANGE *PMMROMRANGE;
     533
     534
     535/**
    505536 * Hypervisor memory mapping type.
    506537 */
     
    636667    /** Pointer to the base RAM. */
    637668    HCPTRTYPE(void *)           pvRamBaseHC;
     669    /** The head of the ROM ranges. */
     670    R3PTRTYPE(PMMROMRANGE)      pRomHead;
    638671
    639672    /** Pointer to the MM R3 Heap. */
     
    660693
    661694const char *mmR3GetTagName(MMTAG enmTag);
     695
     696void mmR3PhysRomReset(PVM pVM);
    662697
    663698/**
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