Skip to content

Commit dc3159a

Browse files
committed
Bit more verbose boot.
1 parent 8a60074 commit dc3159a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/mips/openbios/main/main.c

+10-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <fio.h>
2323

2424
#include "common/hardware/cop0.h"
25+
#include "common/hardware/sio1.h"
2526
#include "common/hardware/spu.h"
2627
#include "common/util/djbhash.h"
2728
#include "openbios/kernel/handlers.h"
@@ -34,13 +35,20 @@ int main() {
3435
*((uint32_t*) 0x68) = 0xff;
3536
muteSpu();
3637

38+
sio1_init();
3739
register_devfs();
3840
register_stdio_devices();
3941

40-
printf("OpenBIOS starting.\n");
42+
printf("OpenBIOS starting.\r\n");
43+
44+
printf("Checking for EXP1...\r\n");
4145

4246
if (djbHash((const char *) 0x1f000084, 44) == 0xf0772daf) {
43-
(*((void(**)()) 0x1f000080))();
47+
void(*ptr)() = *(void(**)()) 0x1f000080;
48+
printf("Signature match, jumping to %p\r\n", ptr);
49+
(*ptr)();
50+
} else {
51+
printf("Signature not matching - skipping EXP1\r\n");
4452
}
4553

4654
start("cdrom:SYSTEM.CNF;1", "cdrom:PSX.EXE;1");

0 commit comments

Comments
 (0)