User manual
mikroPascal PRO for PIC32
MikroElektronika
157
Prototype
function KVA1_TO_KVA0(Address: dword) : dword;
Description Function converts virtual address from KSEG1 to the virtual address in the KSEG0.
Parameters Desired Virtual address in the KSEG1.
Returns Virtual address in the KSEG0.
Requires Nothing.
Example
address := KVA1_TO_KVA0(0xBFC00000);
Notes None.
Prototype
function KVA_TO_PA(Address: dword) : dword;
Description Function converts virtual address from any Kernel segment to the appropriate physical address.
Parameters Desired Virtual Address.
Returns Appropriate physical address.
Requires Nothing.
Example
address := KVA_TO_PA(0xBFC00000);
Notes None.
Prototype
function PA_TO_KVA0(Address: dword) : dword;
Description Function converts physical address to the virtual address in the KSEG0.
Parameters Desired physical address.
Returns Appropriate virtual address in the KSEG0.
Requires Nothing.
Example
address := PA_TO_KVA0(0x1D000000);
Notes None.
Prototype
function PA_TO_KVA1(Address: dword) : dword;
Description Function converts physical address to the virtual address in the KSEG1.
Parameters Appropriate virtual address in the KSEG1.
Returns Virtual address in the KSEG1.
Requires Nothing.
Example
address := PA_TO_KVA1(0x1D000000);
Notes None.
KVA1_TO_KVA0
KVA_TO_PA
PA_TO_KVA0
PA_TO_KVA1