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
5
#include <
loadfile.h
>
6
#include <
sbv_patches.h
>
7
#include <sifrpc.h>
8
9
extern
int
kputs(
char
*s);
10
11
extern
unsigned
char
tc_irx[];
12
extern
unsigned
int
size_tc_irx;
13
14
static
int
test_main(
void
) {
15
int
result = -1;
16
SifInitRpc(0);
17
sbv_patch_enable_lmb
();
18
int
id
=
SifExecModuleBuffer
(tc_irx, size_tc_irx, 0, NULL, &result);
19
/* The module returns 1 (no resident end) when every call form returned the expected value. */
20
kputs(
id
> 0 && result == 1 ?
"iop-tailcall: PASS\n"
:
"iop-tailcall: FAIL\n"
);
21
return
id
> 0 && result == 1 ? 0 : 1;
22
}
23
24
int
main(
void
) {
25
int
result = test_main();
26
printf(
"[ps2rig] exit=%d\n"
, result ? 1 : 0);
27
SleepThread();
28
return
0;
29
}
SifExecModuleBuffer
int SifExecModuleBuffer(void *ptr, u32 size, u32 arg_len, const char *args, int *mod_res)
Definition
loadfile.c:314
kernel.h
loadfile.h
sbv_patches.h
sbv_patch_enable_lmb
int sbv_patch_enable_lmb(void)
Definition
patch_enable_lmb.c:68
stdio.h
string.h
tests
iop-tailcall
src
ee
main.c
Generated by
1.18.0