1 #ifndef _ULTRA64_THREAD_H_
2 #define _ULTRA64_THREAD_H_
5 #define OS_PRIORITY_MAX 255
6 #define OS_PRIORITY_VIMGR 254
7 #define OS_PRIORITY_RMON 250
8 #define OS_PRIORITY_RMONSPIN 200
9 #define OS_PRIORITY_PIMGR 150
10 #define OS_PRIORITY_SIMGR 140
11 #define OS_PRIORITY_APPMAX 127
12 #define OS_PRIORITY_IDLE 0
14 #define OS_STATE_STOPPED 1
15 #define OS_STATE_RUNNABLE 2
16 #define OS_STATE_RUNNING 4
17 #define OS_STATE_WAITING 8
33 u64 t0, t1, t2, t3, t4, t5, t6, t7;
34 u64 s0, s1, s2, s3, s4, s5, s6, s7;
68 void *arg,
void *sp,
OSPri pri);
unsigned long long int u64
Definition: llconv.c:2
void osStopThread(OSThread *thread)
void osSetThreadPri(OSThread *thread, OSPri pri)
Definition: osSetThreadPri.c:3
OSPri osGetThreadPri(OSThread *thread)
Definition: osGetThreadPri.c:3
void osCreateThread(OSThread *thread, OSId id, void(*entry)(void *), void *arg, void *sp, OSPri pri)
Definition: osCreateThread.c:11
s32 OSId
Definition: os_thread.h:22
void osStartThread(OSThread *thread)
Definition: osStartThread.c:3
OSId osGetThreadId(OSThread *thread)
struct OSThread_s OSThread
s32 OSPri
Definition: os_thread.h:21
Definition: os_thread.h:51
u16 flags
Definition: os_thread.h:57
OSPri priority
Definition: os_thread.h:53
__OSThreadprofile_s * thprof
Definition: os_thread.h:60
__OSThreadContext context
Definition: os_thread.h:61
struct OSThread_s ** queue
Definition: os_thread.h:54
struct OSThread_s * next
Definition: os_thread.h:52
struct OSThread_s * tlnext
Definition: os_thread.h:55
OSId id
Definition: os_thread.h:58
int fp
Definition: os_thread.h:59
u16 state
Definition: os_thread.h:56
Definition: os_thread.h:30
__OSfp fp16
Definition: os_thread.h:40
__OSfp fp0
Definition: os_thread.h:39
u32 badvaddr
Definition: os_thread.h:37
u64 hi
Definition: os_thread.h:36
u64 s0
Definition: os_thread.h:34
u64 a0
Definition: os_thread.h:32
u32 fpcsr
Definition: os_thread.h:38
u64 t0
Definition: os_thread.h:33
u64 gp
Definition: os_thread.h:35
Definition: os_thread.h:44
u64 time
Definition: os_thread.h:47
u32 count
Definition: os_thread.h:46
u32 flag
Definition: os_thread.h:45
signed int s32
Definition: ultratypes.h:15
unsigned int u32
Definition: ultratypes.h:16
signed char s8
Definition: ultratypes.h:11
float f32
Definition: ultratypes.h:32
unsigned short int u16
Definition: ultratypes.h:14
Definition: os_thread.h:25