OS_PHYSICAL_TO_KO OS_PHYSICAL_TO_K0 (Macro)

Converts from the physical address to a direct mapped CPU virtual address with cache enabled

Syntax

#include <ultra64.h>     /* ultra64.h */

void *OS_PHYSICAL_TO_K0(u32 paddr);

Description

OS_PHYSICAL_TO_K0 is a cpp macro that translates from a physical memory address to a direct-mapped, cached (KSEG0) CPU virtual address. The result is appropriately allocated for pointer assignment.

See Also

osVirtualToPhysical, OS_K0_TO_PHYSICAL, OS_K1_TO_PHYSICAL, and OS_PHYSICAL_TO_K1

Revision history

1999/04/30 Changed format