OS_KO_TO_PHYSICAL OS_K0_TO_PHYSICAL (Macro)

Translates from a cached, direct-mapped CPU address (KSEG0) to a physical address

Syntax

#include <ultra64.h>     /* ultra64.h */
u32 OS_K0_TO_PHYSICAL(void *vaddr);

Description

OS_K0_TO_PHYSICAL is a cpp macro that translates from a direct-mapped, cached (KSEG0) CPU virtual address to a physical address. The result is appropriately allocated for use in compiled, as well as run-time generated display lists.

See Also

osVirtualToPhysical, OS_K1_TO_PHYSICAL, OS_PHYSICAL_TO_K0, and OS_PHYSICAL_TO_K1

Revision history

1999/04/30 Changed format