cbNKCoProcRegSize (Windows CE 5.0)

Send Feedback

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.

DWORD cbNKCoProcRegSize;

Parameters

None.

Return Values

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

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

See Also

OEMKDIoControl | OEMInit | OEMSaveCoProcRegister | OEMRestoreCoProcRegister | OEMInitCoProcRegisterSavedArea | fNKSaveCoProcReg

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.