次の方法で共有


CurMSec (Compact 2013)

10/16/2014

This global variable indicates the number of milliseconds since boot.

Syntax

extern volatile UINT32 CurMSec;

Remarks

This variable is implemented in the NKGLOBAL structure. Your OEM adaptation layer (OAL) implementation must update this global variable.

CurMSec requires updating by the OEM timer ISR routine for all CPUs.

The OEMIdle function also updates CurMSec if the timer uses variable ticks for conserving power.

The OEMGetTickCount function must return a value in sync with CurMSec.

OEMs can reference the pre-defined macro CurMSec by including the header file nkexports.h. Alternatively, OEMs can directly access the dwCurMSec member of the NKGLOBAL structure.

On an symmetric multiprocessing system, interrupts remain enabled so IPIs can occur while in a debug break state. In this state, the timer interrupt continues to tick and increment CurMSec. To freeze the system tick during the debug break state, you should implement pfnKdEnableTime in g_pOemGlobal.

Requirements

Header

Developer Implemented

Library

Nkstub.lib

See Also

Reference

Required OAL Variables
OEMIdle