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

typedef DECLCALLBACK ( int   ) 

Callback function for consuming compressed data during compression.

Returns:
iprt status code.
Parameters:
pvUser User argument.
pvBuf Compressed data.
cbBuf Size of the compressed data.
Callback function for supplying compressed data during decompression.

Returns:
iprt status code.
Parameters:
pvUser User argument.
pvBuf Where to store the compressed data.
cbBuf Size of the buffer.
pcbBuf Number of bytes actually stored in the buffer.

Todo:
r=bird: We should just drop all these items, restoring doesn't make sense.

Definition at line 635 of file VBoxRecompiler.c.

{
    PREM pRem = &pVM->rem.s;

    /*
     * Save the required CPU Env bits.
     * (Not much because we're never in REM when doing the save.)
     */
    LogFlow(("remR3Save:\n"));
    Assert(!pRem->fInREM);
    SSMR3PutU32(pSSM,   pRem->Env.hflags);
    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));
    SSMR3PutU32(pSSM, pVM->rem.s.u32PendingInterrupt);

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


Generated by  Doxygen 1.6.0   Back to index