sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
startup.h
Go to the documentation of this file.
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# (c) 2020 Francisco Javier Trujillo Mata <fjtrujy@gmail.com>
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
16
17#ifndef __STARTUP_H__
18#define __STARTUP_H__
19
20
21#include <stdint.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#define MAX_ARGS 16
28#define MAX_ARGLEN 256
29
30// System provided arguments when loaded normally
31struct sargs {
32 int32_t argc;
33 char* argv[MAX_ARGS];
34 char payload[MAX_ARGLEN];
35};
36
37// Sent arguments through __start (by ps2link for instance)
39 int32_t pid;
40 struct sargs args;
41};
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif /* __STARTUP_H__ */