Compartilhar via


cbCoProcRegSize (Compact 2013)

10/16/2014

This global variable describes the size of the memory allocation, in bytes, that is needed for the OEM to save or restore coprocessor registers.

Syntax

DWORD cbCoProcRegSize;

Remarks

You only declare the variable cbCoProcRegSize if the particular platform or CPU has coprocessor registers that must be saved or restored during context switches. If you use this variable, assign it a value during the call to the OEMInit function.

The following code example shows how to do this:

extern DWORD cbCoProcRegSize;
void OEMINIT()
{
    g_pOemGlobal->cbCoProcRegSize = 64;
}

If you set cbCoProcRegSize to zero, the OEM function is not called.

The maximum size is limited to MAX_COPROCREGSIZE.

An OEM can then turn on or off the save and restore registers activity by using the fSaveCoProcReg variable. Both cbCoProcRegSize and fSaveCoProcReg must be set to a value greater than zero (0) for the OAL functions OEMInitCoProcRegs, OEMSaveCoProcRegs, and OEMRestoreCoProcRegs to be called.

Requirements

Header

Developer Implemented

See Also

Reference

Optional OAL Variables
OEMGLOBAL
OEMKDIoctl
OEMInit
fSaveCoProcReg