__osGetTLBHi

__osGetTLBHi

Function

__osGetTLBASID, __osGetTLBPageMask, __osGetTLBHi, __osGetTLBLo0, __osGetTLBLo1

Internal routines that the N64 operating system uses to access translation lookaside buffer (TLB) registers.

Syntax

#include <ultra64.h>
#include <os_internal.h>
u32 __osGetTLBASID(void);
u32 __osGetTLBPageMask(s32 index);
u32 __osGetTLBHi(s32 index);
u32 __osGetTLBLo0(s32 index);
u32 __osGetTLBLo1(s32 index);

Description

The Nintendo 64 operating system contains internal routines that provide access to MIPS R4300 Translation Lookaside Buffer (TLB) registers. To reduce potential duplicate effort from developers, these routines are described in this article. Note that these routines were designed for internal use only; that's why their names have a double-underscore (__) prefix notation. For more information on the use of the R4300 registers, please refer to the MIPS R4300 User's Manual.

The __osGetTLBASID routine returns the current TLB Address Space ID in the R4300 EntryHi register.

Based on the index, __osGetTLBPageMask reads the appropriate TLB entry and returns the value of the R4300 PageMask register.

Based on the index, __osGetTLBHi reads the appropriate TLB entry and returns the value of the R4300 EntryHi register.

Based on the index, __osGetTLBLo0 reads the appropriate TLB entry and returns the value of the R4300 EntryLo0 register.

Based on the index, __osGetTLBLo1 reads the appropriate TLB entry and returns the value of the R4300 EntryLo1 register.

See Also

__osGetTLBASID, __osGetTLBPageMask, __osGetTLBLo0, __osGetTLBLo1, and __osGetCause