Share via


OAL_ADDRESS_TABLE (Windows Embedded CE 6.0)

1/5/2010

This structure represents a table that is used by the kernel to establish the virtual to physical address mapping. In addition, the OALPAtoVA and OALVAtoPA functions use this table to retrieve the virtual address for a corresponding physical address, and vice versa.

Syntax

typedef struct {
  UINT32 CA;
  UINT32 PA;
  UINT32 size;
} OAL_ADDRESS_TABLE, *POAL_ADDRESS_TABLE;

Members

  • CA
    Cached virtual address.
  • PA
    Physical base address from which to map.
  • size
    Amount of memory to map, in megabytes.

Remarks

The OAL_ADDRESS_TABLE structure defines the mapping from the 4 GB physical address space to the kernel's 512 MB unmapped memory space. The kernel creates two ranges of virtual addresses from this table. The virtual address range 0x8000000 to 0x9FFFFFFF has caching and buffering enabled, but the virtual address range 0xA0000000 to 0xBFFFFFFF has the cache and buffering disabled. Each entry in the table consists of the cached virtual address represented by the CA member, the physical base address to map from, represented by the PA member, and the number of megabytes of memory to map.

The order of the entries in the table is arbitrary, but it is recommended that RAM be first for optimal performance. Because the table is zero-terminated, the last entry must be all zeroes.

Requirements

Header oal_memory.h
Library Developer Implemented
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

Memory Structures