Skip to content

Commit ccdfd31

Browse files
committed
Call _InitSys() before newlib initialization
1 parent a5cd227 commit ccdfd31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ee/startup/src/crt0.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ static void _main()
9797
// NOTE: this call can restart the application
9898
if (_ps2sdk_memory_init)
9999
_ps2sdk_memory_init();
100+
101+
// Initialize the kernel (Apply necessary patches).
102+
_InitSys();
100103

101104
// Use arguments sent through start if sent (by ps2link for instance)
102105
pa = &args;
@@ -113,9 +116,6 @@ static void _main()
113116
if (_init)
114117
_init();
115118

116-
// Initialize the kernel (Apply necessary patches).
117-
_InitSys();
118-
119119
// Enable interruts
120120
EI();
121121

0 commit comments

Comments
 (0)