次の方法で共有


OEMMpPerCPUInit (Compact 2013)

3/28/2014

This function performs tasks the OEM considers necessary to initialize each subordinate CPU in a multiprocessor platform.

Syntax

DWORD OEMMpPerCPUInit(void);

Parameters

None.

Return Value

Returns the hardware processor number (CPU ID) of the subordinate processor.

Note

The hardware processor ID of the main processor is hard-coded to 0 (zero). The secondary processor number is a 1-based index.

Remarks

To support multiple processors, you must implement this function. If you implement OEMMpPerCPUInit, set the pfnMpPerCPUInit member of OEMGLOBAL to point to this function.

The call to this function is the first call from the kernel running on the secondary processor at the highest level of privilege to the OEM adaptation layer (OAL).

The role of this function is similar to the role that the OEMInit function provides for the main processor. The OEMMpPerCPUInit function enables the OAL to perform per-processor initialization.

Requirements

Header

oemglobal.h

Library

OEMMain.lib or OEMMain_StaticKITL.lib

See Also

Reference

SMP Functions
OEMMpStartAllCPUs

Other Resources

Optional OAL Functions