sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
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
12extern "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
20typedef struct st_arch_message
21{
22 struct st_arch_message *next;
23 void *sys_msg;
24} arch_message;
25
26struct MboxData{
27 int MessageCountSema;
28 arch_message *FirstMessage;
29 arch_message *LastMessage;
30};
31
32typedef int sys_prot_t;
33typedef int sys_sem_t;
34typedef struct MboxData *sys_mbox_t;
35typedef 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
40extern void *ps2ip_calloc64(size_t n, size_t size);
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif /* __SYS_ARCH_H__ */