osGetTLBASID.3p 1.55 KB
.TH __osGetTLBASID 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
__osGetTLBASID, __osGetTLBPageMask, __osGetTLBHi, __osGetTLBLo0,
__osGetTLBLo1 \- internal routines to access TLB registers
.SH SYNOPSIS
.nf
\f3
.Op c
#include <ultra64.h>
#include <os_internal.h>
.sp .8v
u32 __osGetTLBASID(void);
.sp .8v
u32 __osGetTLBPageMask(s32 index);
.sp .8v
u32 __osGetTLBHi(s32 index);
.sp .8v
u32 __osGetTLBLo0(s32 index);
.sp .8v
u32 __osGetTLBLo1(s32 index);
.Op
\f1
.fi
.SH DESCRIPTION
The Nintendo64 operating system contains some internal routines that provide
access to MIPS R4300 Translation Lookaside Buffer (TLB) registers. To reduce 
potential duplicate effort from developers, these routines are described below.
Sine these routines were originally designed for internal use only, their names
have a "__" prefix notation. For more information on the use of the R4300 
registers, please refer to the MIPS R4300 User's Manual.
.PP
The __osGetTLBASID routine returns the current TLB Address Space ID in the 
R4300 EntryHi register.
.PP
Based on the
.IR index,
__osGetTLBPageMask reads the appropriate TLB entry and returns the value of the 
R4300 PageMask register.
.PP
Based on the
.IR index,
__osGetTLBHi reads the appropriate TLB entry and returns the value of the 
R4300 EntryHi register.
.PP
Based on the
.IR index,
__osGetTLBLo0 reads the appropriate TLB entry and returns the value of the 
R4300 EntryLo0 register.
.PP
Based on the
.IR index,
__osGetTLBLo1 reads the appropriate TLB entry and returns the value of the 
R4300 EntryLo1 register.
.SH "SEE ALSO"
__osGetCause (3P)