PPCMfhid2 and PPCMthid2

This commit is contained in:
Charlotte Delenk 2021-10-14 16:55:04 +02:00
parent 144d8eac24
commit 9fbb938d1d
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5
5 changed files with 19 additions and 4 deletions

View file

@ -1,9 +1,11 @@
build/obj/sdk/msl/runtime/__mem.o
build/obj/sdk/trk/__exception.o
build/obj/2.o
build/obj/sdk/rvl/os/OS.o
build/obj/sdk/rvl/base/PPCArch.o
build/obj/3.o
build/obj/sdk/rvl/os/OS.o
build/obj/4.o
build/obj/sdk/rvl/os/__start.o
build/obj/sdk/rvl/os/__ppc_eabi_init.o
build/obj/6.o
build/obj/7.o
build/obj/8.o

View file

@ -1,6 +1,7 @@
.init start,.init end,extab start,extab end,extabindex start,extabindex end,.text start,.text end,.ctors start,.ctors end,.dtors start,.dtors end,.rodata start,.rodata end,.data start,.data end,.bss start,.bss end,.sdata start,.sdata end,.sbss start,.sbss end,.sdata2 start,.sdata2 end,.sbss2 start,.sbss2 end,File
80004000,80004380,,,,,,,,,,,,,,,,,,,,,,,,,sdk/msl/runtime/__mem.o
80004380,800062c0,,,,,,,,,,,,,,,,,,,,,,,,,sdk/trk/__exception.o
,,,,,,8001a200,8001a218,,,,,,,,,,,,,,,,,,,sdk/rvl/base/PPCArch.o
,,,,,,8001b670,8001b6c4,,,,,,,,,,,,,,,,,,,sdk/rvl/os/OS.o
800062c0,80006620,,,,,,,,,,,,,,,,,,,8055c878,8055c879,,,,,sdk/rvl/os/__start.o
80006620,80006684,,,,,,,,,,,,,,,,,,,,,,,,,sdk/rvl/os/__ppc_eabi_init.o

1 .init start .init end extab start extab end extabindex start extabindex end .text start .text end .ctors start .ctors end .dtors start .dtors end .rodata start .rodata end .data start .data end .bss start .bss end .sdata start .sdata end .sbss start .sbss end .sdata2 start .sdata2 end .sbss2 start .sbss2 end File
2 80004000 80004380 sdk/msl/runtime/__mem.o
3 80004380 800062c0 sdk/trk/__exception.o
4 8001a200 8001a218 sdk/rvl/base/PPCArch.o
5 8001b670 8001b6c4 sdk/rvl/os/OS.o
6 800062c0 80006620 8055c878 8055c879 sdk/rvl/os/__start.o
7 80006620 80006684 sdk/rvl/os/__ppc_eabi_init.o

View file

@ -6,8 +6,6 @@ Address,SymbolName
80015aac,InitMetroTRK_BBA
80015d28,__TRKreset
800190a0,TRK_InterruptHandler
8001a200,PPCMfhid2
8001a210,PPCMthid2
8001a2c0,__OSFPRInit
8001ad80,OSInit
8001cab0,ICFlashInvalidate

1 Address SymbolName
6 80015aac InitMetroTRK_BBA
7 80015d28 __TRKreset
8 800190a0 TRK_InterruptHandler
8001a200 PPCMfhid2
8001a210 PPCMthid2
9 8001a2c0 __OSFPRInit
10 8001ad80 OSInit
11 8001cab0 ICFlashInvalidate

13
sdk/rvl/base/PPCArch.c Normal file
View file

@ -0,0 +1,13 @@
#include <base.h>
asm u32 PPCMfhid2(void) {
nofralloc;
mfspr r3, 920;
blr;
}
asm void PPCMthid2(register u32 val) {
nofralloc;
mtspr 920, val;
blr;
}

View file

@ -13,6 +13,7 @@ fn parse_hex(s: &str) -> Result<u32, ParseIntError> {
const SOURCES: &[(&str, &str)] = &[
("sdk/msl/runtime/__mem.c", "msl"),
("sdk/rvl/base/PPCArch.c", "sdk"),
("sdk/rvl/os/OS.c", "sdk"),
("sdk/rvl/os/__start.c", "sdk"),
("sdk/rvl/os/__ppc_eabi_init.c", "sdk"),