Share via


CreateStaticMapping (Windows CE 5.0)

Send Feedback

This function creates a static virtual memory address that maps to a physical address. This function is callable from the user code and not the OAL.

LPVOID CreateStaticMapping(DWORDdwPhysBase,DWORDdwSize);

Parameters

  • dwPhysBase
    [in] Starting physical address to map. The address passed in must be right-shifted by 8.
  • dwSize
    [in] Number of bytes to map starting from dwPhysBase.

Return Values

If the memory can be mapped, a valid static virtual memory pointer is returned. The virtual memory address returned is for an uncached memory region.

Remarks

CreateStaticMapping allows an application to map any physical address to a static virtual memory address that can then be used in an ISR. An ISR can only access a static mapped virtual address. In previous releases, a static mapping could only be created at boot time and not dynamically.

Once the static mapping is created, it is active until the device reboots.

The same functionality can be obtained from the OAL by calling the OAL version of the API NKCreateStaticMapping.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Pkfuncs.h.
Link Library: Coredll.lib.

See Also

Memory Addressing | NKCreateStaticMapping | OEMAddressTable

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.