sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
sys_arch.h
Go to the documentation of this file.
1
5
#ifndef __SYS_ARCH_H__
6
#define __SYS_ARCH_H__
7
8
#include <
kernel.h
>
9
#include <malloc.h>
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
#define SYS_MBOX_NULL NULL
16
#define SYS_SEM_NULL -1
17
18
#define SYS_MAX_MESSAGES (MEMP_NUM_TCPIP_MSG_API+MEMP_NUM_TCPIP_MSG_INPKT)
19
20
typedef
struct
st_arch_message
21
{
22
struct
st_arch_message *next;
23
void
*sys_msg;
24
} arch_message;
25
26
struct
MboxData
{
27
int
MessageCountSema;
28
arch_message *FirstMessage;
29
arch_message *LastMessage;
30
};
31
32
typedef
int
sys_prot_t;
33
typedef
int
sys_sem_t;
34
typedef
struct
MboxData
*sys_mbox_t;
35
typedef
int
sys_thread_t;
36
37
#define mem_clib_malloc(size) memalign(64,size)
38
#define mem_clib_calloc(count,size) ps2ip_calloc64(count,size)
39
40
extern
void
*ps2ip_calloc64(
size_t
n,
size_t
size);
41
42
#ifdef __cplusplus
43
}
44
#endif
45
46
#endif
/* __SYS_ARCH_H__ */
kernel.h
MboxData
Definition
sys_arch.h:26
st_arch_message
Definition
sys_arch.h:19
core
ps2ip
include
arch
sys_arch.h
Generated by
1.18.0