PS2SDK
PS2 Homebrew Libraries
initsys.c
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Licenced under Academic Free License version 2.0
7 # Review ps2sdk README & LICENSE files for further details.
8 */
9 
15 #include "kernel.h"
16 #include "timer.h"
17 #include "string.h"
18 #include <timer_alarm.h>
19 
20 #ifdef F__InitSys
21 void _InitSys(void)
22 {
23  InitAlarm();
24  _ps2sdk_init_timer();
25  InitThread();
26  InitExecPS2();
27  InitTLBFunctions();
28 }
29 #endif
30 
31 #ifdef F_TerminateLibrary
32 void TerminateLibrary(void)
33 {
34  _ps2sdk_deinit_timer();
35  InitTLB();
36 }
37 #endif
kernel.h
timer.h