OEMInitCoProcRegisterSavedArea (Windows Embedded CE 6.0)

1/5/2010

This function is called by the kernel when a thread is created to initialize the debug registers.

Syntax

void OEMInitCoProcRegisterSavedArea( 
  LPBYTE pArea
);

Parameters

  • pArea
    [out] Buffer used to save or restore debug registers. The initialized value is passed directly to the OEMRestoreCoProcRegister function when the thread is first scheduled.

Return Value

None.

Remarks

Leave the function pointer to NULL if the platform does not have debug registers.

To initialize debug registers, declare the following pointer in the OAL and assign the pointer the function address of the OEMInitCoProcRegisterSavedArea function.

extern void (*pOEMInitCoProcRegisterSavedArea) (LPBYTE pArea); 

The kernel calls pOEMInitCoProcRegisterSavedArea when the thread is created if the cbNKCoProcRegSize global variable is nonzero. The OEM can initialize the buffer in any way necessary to implement support for save and restore.

Requirements

Header Developer Implemented
Library OEMMain.lib or OEMMain_StaticKITL.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Optional OAL Functions
OEMSaveCoProcRegister
OEMRestoreCoProcRegister
cbNKCoProcRegSize
fNKSaveCoProcReg