Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

typedef DECLCALLBACK ( int   ) 

Callback function for mapping an PCI I/O region.

VBox status code.
pPciDev Pointer to PCI device. Use pPciDev->pDevIns to get the device instance.
iRegion The region number.
GCPhysAddress Physical address of the region. If iType is PCI_ADDRESS_SPACE_IO, this is an I/O port, else it's a physical address. This address is *NOT* relative to pci_mem_base like earlier!
enmType One of the PCI_ADDRESS_SPACE_* values.

r=bird: this doesn't make sense. WHY?

Definition at line 456 of file VBoxRecompiler.c.


     * Save the required CPU Env bits.
     * (Not much because we're never in REM when doing the save.)
    PREM pRem = &pVM->rem.s;
    SSMR3PutU32(pSSM,   pRem->Env.hflags);
    SSMR3PutMem(pSSM,   &pRem->Env, RT_OFFSETOF(CPUState, jmp_env));
    SSMR3PutU32(pSSM,   ~0);            /* separator */

    /* Remember if we've entered raw mode (vital for ring 1 checks in e.g. iret emulation). */
    SSMR3PutU32(pSSM, !!(pRem->Env.state & CPU_RAW_RING0));

     * Save the REM stuff.
    SSMR3PutUInt(pSSM,  pRem->cInvalidatedPages);
    unsigned i;
    for (i = 0; i < pRem->cInvalidatedPages; i++)
        SSMR3PutGCPtr(pSSM, pRem->aGCPtrInvalidatedPages[i]);

    SSMR3PutUInt(pSSM, pVM->rem.s.u32PendingInterrupt);

    return SSMR3PutU32(pSSM, ~0);       /* terminator */

Generated by  Doxygen 1.6.0   Back to index