osGetTLBASID.3p
1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.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)