Xil_SetMPURegionByRegNum - 2022.2 English

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

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

Enables the corresponding region number as passed by the user.

Prototype

u32 Xil_SetMPURegionByRegNum(u32 reg_num, INTPTR addr, u64 size, u32 attrib);

Parameters

The following table lists the Xil_SetMPURegionByRegNum function arguments.

Table 1. Xil_SetMPURegionByRegNum Arguments
Name Description
reg_num The region number to be enabled
addr 32 bit address for start of the region.
size Requested size of the region.
attrib Attribute for the corresponding region.

Returns

XST_SUCCESS: If the region could be created successfully XST_FAILURE: If the requested region number is 16 or more.