Xil_MemMap - 2022.2 English - UG643

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

Document ID
UG643
Release Date
2022-10-19
Version
2022.2 English

Memory mapping for Cortex-R5F. If successful, the mapped region will include all of the memory requested, but may include more. Specifically, it will be a power of two 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