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:
dbalatoni13 2025-01-19 21:54:38 +01:00 committed by GitHub
parent edacd76015
commit 6575f573f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 1438 additions and 1287 deletions

View file

@ -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
/*

View 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