File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 22
22
#include <fio.h>
23
23
24
24
#include "common/hardware/cop0.h"
25
+ #include "common/hardware/sio1.h"
25
26
#include "common/hardware/spu.h"
26
27
#include "common/util/djbhash.h"
27
28
#include "openbios/kernel/handlers.h"
@@ -34,13 +35,20 @@ int main() {
34
35
* ((uint32_t * ) 0x68 ) = 0xff ;
35
36
muteSpu ();
36
37
38
+ sio1_init ();
37
39
register_devfs ();
38
40
register_stdio_devices ();
39
41
40
- printf ("OpenBIOS starting.\n" );
42
+ printf ("OpenBIOS starting.\r\n" );
43
+
44
+ printf ("Checking for EXP1...\r\n" );
41
45
42
46
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" );
44
52
}
45
53
46
54
start ("cdrom:SYSTEM.CNF;1" , "cdrom:PSX.EXE;1" );
You can’t perform that action at this time.
0 commit comments