Match OSReboot.c and some of TRK + port mstory3Dll (#541)
* Match OSReboot.c and match some of TRK * Port mstory3Dll
This commit is contained in:
parent
edacd76015
commit
6575f573f6
18 changed files with 1438 additions and 1287 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#define EXCEPTIONMASK_ADDR 0x80000044
|
||||
|
||||
static u32 lc_base;
|
||||
extern u32 _db_stack_addr;
|
||||
|
||||
static u32 TRK_ISR_OFFSETS[15] = { PPC_SystemReset,
|
||||
PPC_MachineCheck,
|
||||
|
|
@ -64,8 +65,8 @@ asm void InitMetroTRK()
|
|||
mtspr 0x3f2, r0
|
||||
mtspr 0x3f5, r0
|
||||
//Restore stack pointer
|
||||
lis r1, 0x80426008@h
|
||||
ori r1, r1, 0x80426008@l
|
||||
lis r1, _db_stack_addr@h
|
||||
ori r1, r1, _db_stack_addr@l
|
||||
mr r3, r5
|
||||
bl InitMetroTRKCommTable //Initialize comm table
|
||||
/*
|
||||
|
|
|
|||
25
src/TRK_MINNOW_DOLPHIN/targsupp.s
Normal file
25
src/TRK_MINNOW_DOLPHIN/targsupp.s
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
.include "macros.inc"
|
||||
.file "targsupp.s"
|
||||
|
||||
.text
|
||||
.balign 4
|
||||
|
||||
.fn TRKAccessFile, global
|
||||
twui r0, 0x0
|
||||
blr
|
||||
.endfn TRKAccessFile
|
||||
|
||||
.fn TRKOpenFile, global
|
||||
twui r0, 0x0
|
||||
blr
|
||||
.endfn TRKOpenFile
|
||||
|
||||
.fn TRKCloseFile, global
|
||||
twui r0, 0x0
|
||||
blr
|
||||
.endfn TRKCloseFile
|
||||
|
||||
.fn TRKPositionFile, global
|
||||
twui r0, 0x0
|
||||
blr
|
||||
.endfn TRKPositionFile
|
||||
Loading…
Add table
Add a link
Reference in a new issue