OEMTakeCPUSnapshot (Compact 2013)

10/16/2014

This OEM-implemented function saves all CPU registers, including control registers, that must be restored when booting from a snapshot.

Syntax

BOOL OEMTakeCPUSnapshot(
    [in] DWORD dwSnapPC,
    [in] LPVOID pCpuContext,
    [in] DWORD cbCpuContext);

Parameters

  • dwSnapPC
    Program Counter value that must be stored in pCpuContext. This value is the address where execution resumes immediately after booting from a snapshot.
  • pCpuContext
    Pointer to the buffer that stores the CPU context.
  • cbCpuContext
    Size, in bytes, of the CPU context buffer.

Return Value

Implement this function so that it returns true if successful; otherwise, return false.

Remarks

Typically, you write this function in assembly language. The order in which you write the CPU context is OEM-specific.

Requirements

Header

Developer Implemented

Library

OEMMain.lib or OEMMain_StaticKITL.lib

See Also

Reference

Optional OAL Functions