It sets the memory attributes for a section, in the translation table.
If the address (defined by Addr) is less than 4GB, the memory attribute(attrib) is set for a section of 2MB memory. If the address (defined by Addr) is greater than 4GB, the memory attribute (attrib) is set for a section of 1GB memory.
Note: The MMU and D-cache need not be disabled before changing an translation table attribute.
Prototype
void Xil_SetTlbAttributes(UINTPTR Addr, u64 attrib);
Parameters
The following table lists the Xil_SetTlbAttributes
function arguments.
Name | Description |
---|---|
Addr | 64-bit address for which attributes are to be set. |
attrib | Attribute for the specified memory region. xil_mmu.h contains commonly used memory attributes definitions which can be utilized for this function. |