次の方法で共有


OEMInitCoProcRegs (Compact 2013)

10/16/2014

This function initializes the platform-specific debug registers in the debug coprocessor.

Syntax

void OEMInitCoProcRegs( 
  LPBYTE pArea
);

Parameters

  • pArea
    [out] Pointer to a buffer that is used to save or restore debug registers. The initialized value is passed directly to the OEMRestoreCoProcRegs function when the thread is first scheduled.

Return Value

None.

Remarks

The pfnInitCoProcRegs member of OEMGLOBAL is initialized to NULL in Oemglobal.c. Leave the function pointer set to NULL if the platform does not have debug registers.

To initialize debug registers, implement OEMInitCoProcRegs and set the pfnInitCoProcRegs member to point to this function.

The kernel calls this function when the thread is created if the cbNKCoProcRegSize global variable is nonzero. You 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

See Also

Reference

Optional OAL Functions
OEMSaveCoProcRegs
OEMRestoreCoProcRegs
cbCoProcRegSize
fSaveCoProcReg