Share via


cbNKCoProcRegSize

This global variable describes the size of the memory allocation, in bytes, needed for the OEM to save/restore coprocessor registers. An OEM can then turn on/off the save/restore registers with the fNKSaveCoProcReg variable.

DWORD cbNKCoProcRegSize;

Remarks

An OEM only needs to declare cbNKCoProcRegSize if the particular platform or CPU has coprocessor registers that need to 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 will not be 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

OS Versions: Windows CE .NET 4.0 and later.
Header: Developer defined.

See Also

OEMKDIoControl | OEMInit | OEMSaveCoProcRegister | OEMRestoreCoProcRegister | OEMInitCoProcRegisterSavedArea | fNKSaveCoProcReg

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.