cbNKCoProcRegSize (Windows Embedded CE 6.0)
1/5/2010
This global variable describes the size of the memory allocation, in bytes, needed for the OEM to save or restore coprocessor registers. An OEM can then turn on or off the save and restore registers with the fNKSaveCoProcReg variable.
Syntax
DWORD cbNKCoProcRegSize;
Parameters
None.
Return Value
None.
Remarks
An OEM only needs to declare cbNKCoProcRegSize if the particular platform or CPU has coprocessor registers that must be saved or restored during context switches. If used, assign it a value during OEMInit.
The following code example shows how to do this.
extern DWORD cbNKCoProcRegSize;
void OEMINIT()
{
cbNKCoProcRegSize = 64;
}
If cbNKCoProcRegSize is set to 0, the OEM function is not called.
The maximum size is limited to MAX_COPROCREGSIZE.
Both cbNKCoProcRegSize and fNKSaveCoProcReg must be set to a value greater than zero (0) for the OAL functions to be called.
Requirements
Header | Developer Implemented |
Windows Embedded CE | Windows CE .NET 4.0 and later |
See Also
Reference
Optional OAL Variables
OEMKDIoControl
OEMInit
OEMSaveCoProcRegister
OEMRestoreCoProcRegister
OEMInitCoProcRegisterSavedArea
fNKSaveCoProcReg