ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
Go to the source code of this file.
Data Structures | |
struct | SyscallData |
struct | TLBEntry |
struct | TLBInfo |
Macros | |
#define | kprintf(args...) |
#define | TLB_NUM_KERNEL_ENTRIES 0x0D |
#define | TLB_NUM_DEFAULT_ENTRIES 0x12 |
#define | TLB_NUM_EXTENDED_ENTRIES 0x08 |
Functions | |
static int | InitTLB32MB (void) |
void * | GetEntryAddress (int syscall) |
void | setup (int syscall, void *function) |
void | InitTLBFunctions (void) |
void | InitTLB (void) |
Variables | |
static const struct SyscallData | SysEntry [] |
char ** | _kExecArg |
unsigned char | tlbsrc [] |
unsigned int | size_tlbsrc |
static const struct TLBEntry | kernelTLB [TLB_NUM_KERNEL_ENTRIES] |
static const struct TLBEntry | defaultTLB [TLB_NUM_DEFAULT_ENTRIES] |
static const struct TLBEntry | extendTLB [TLB_NUM_EXTENDED_ENTRIES] |
static struct TLBInfo | TLBInfo ={TLB_NUM_KERNEL_ENTRIES, TLB_NUM_DEFAULT_ENTRIES, TLB_NUM_EXTENDED_ENTRIES, 0, kernelTLB, defaultTLB, extendTLB} |
void* GetEntryAddress | ( | int | syscall | ) |
Referenced by InitTLBFunctions().
void InitTLB | ( | void | ) |
|
static |
Definition at line 142 of file tlbfunc.c.
References _SetTLBEntry(), TLBInfo::defaultTLB, TLBEntry::EntryHi, TLBEntry::EntryLo0, TLBEntry::EntryLo1, Exit(), TLBInfo::extendedTLB, TLBInfo::kernelTLB, kprintf, TLBInfo::NumDefaultTLBEntries, TLBInfo::NumExtendedTLBEntries, TLBInfo::NumKernelTLBEntries, TLBInfo::NumWiredEntries, and TLBEntry::PageMask.
void InitTLBFunctions | ( | void | ) |
Definition at line 41 of file tlbfunc.c.
References _kExecArg, Copy(), FlushCache(), GetEntryAddress(), setup(), size_tlbsrc, SyscallData::syscall, SysEntry, and tlbsrc.
void setup | ( | int | syscall, |
void * | function | ||
) |
Referenced by InitTLBFunctions().
|
extern |
Definition at line 26 of file tlbsrc.c.
Referenced by InitTLBFunctions().
|
static |
|
static |
|
static |
|
extern |
Referenced by InitTLBFunctions().
|
static |
|
static |
|
extern |
Referenced by InitTLBFunctions().