sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
main.c
1
#include <
stdio.h
>
2
#include <
string.h
>
3
#include <
kernel.h
>
4
#include <
crashscreen.h
>
5
6
int
kputs(
char
*s);
7
8
static
void
hook(
const
char
*report)
9
{
10
int
ok = strstr(report,
"Address error on load"
) && strstr(report,
"PC="
) && strstr(report,
"BadVAddr="
);
11
kputs(ok ?
"crash-adel: PASS\n"
:
"crash-adel: FAIL report\n"
);
12
}
13
14
static
int
trigger(
void
)
15
{
16
volatile
int
*p = (
volatile
int
*)0x00100001;
return
*p;
17
}
18
19
int
main(
void
)
20
{
21
crashscreen_install
();
22
crashscreen_set_hook
(hook);
23
int
r = trigger();
24
kputs(
"crash-adel: FAIL no exception\n"
);
25
SleepThread();
26
return
r;
27
}
crashscreen.h
crashscreen_set_hook
void crashscreen_set_hook(crashscreen_hook_t hook)
Definition
crashscreen.c:468
crashscreen_install
void crashscreen_install(void)
Definition
crashscreen.c:473
kernel.h
stdio.h
string.h
tests
crash-adel
src
main.c
Generated by
1.18.0