Xil_MemMap - Xil_MemMap - 2026.1 English - UG643

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2026-06-23
Version
2026.1 English

Memory mapping for Cortex-R5F.

If successful, the mapped region includes all of the requested memory and can include more. Specifically, it is power of 2 in size, aligned on a boundary of that size.

Prototype

void * Xil_MemMap(UINTPTR Physaddr, size_t size, u32 flags);

Parameters

The following table lists the Xil_MemMap function arguments.

Table 1. Xil_MemMap Arguments
Name Description
Physaddr is base physical address at which to start mapping. NULL in Physaddr masks possible mapping errors.
size of region to be mapped.
flags used to set translation table.

Returns

Physaddr on success, NULL on error. Ambiguous if Physaddr==NULL