coastline 0.0.4
Loading...
Searching...
No Matches
osint.h
Go to the documentation of this file.
1#ifndef LIBULTRA_OS_OSINT_H
2#define LIBULTRA_OS_OSINT_H
3
9
10#include <ultra64.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct {
17 OSMesgQueue *messageQueue;
18 OSMesg message;
19} __OSEventState;
20
27extern struct __osThreadTail {
28 OSThread *next;
29 OSPri priority;
30} __osThreadTail;
31
38extern OSThread *__osRunQueue;
39
46extern OSThread *__osActiveQueue;
47
54extern OSThread *__osRunningThread;
55
62extern __OSEventState __osEventStateTab[];
63
70extern OSTimer __osBaseTimer;
71
78extern OSTimer *__osTimerList;
79
86extern OSTime __osCurrentTime;
87
94extern u32 __osBaseCounter;
95
102extern u32 __osViIntrCount;
103
110extern u32 __osTimerCounter;
111
118void __osTimerServicesInit(void);
119
126void __osTimerInterrupt(void);
127
134void __osSetTimerIntr(OSTime value);
135
142OSTime __osInsertTimer(OSTimer *t);
143
150void __osSetCompare(u32 value);
151
158extern u32 __OSGlobalIntMask;
159
166extern u32 __osFinalrom;
167
174extern OSThread *__osFaultedThread;
175
182void __osSetGlobalIntMask(u32 mask);
183
190void __osResetGlobalIntMask(u32 mask);
191
198OSThread *__osGetCurrFaultedThread(void);
199
206void __osSetSR(u32 value);
207
214u32 __osGetSR(void);
215
222u32 __osSetFpcCsr(u32 value);
223
230u32 __osProbeTLB(void *vaddr);
231
238void __osExceptionPreamble(void);
239
246void __osException(void);
247
254OSIntMask __osDisableInt(void);
255
262void __osRestoreInt(OSIntMask im);
263
270void __osEnqueueAndYield(OSThread **queue);
271
278void __osEnqueueThread(OSThread **queue, OSThread *t);
279
286OSThread *__osPopThread(OSThread **queue);
287
294void __osDequeueThread(OSThread **queue, OSThread *t);
295
302void __osDispatchThread(void);
303
310void __osCleanupThread(void);
311
312#ifdef __cplusplus
313}
314#endif
315
316#endif /* LIBULTRA_OS_OSINT_H */
u32 OSIntMask
Definition os.h:71
struct OSTimer_s OSTimer
A timer that sends a message when it expires, once or periodically.
u64 OSTime
Definition os.h:133
struct OSThread_s OSThread
A thread: its place in the queues, its state, and the registers saved when it last stopped.
struct OSMesgQueue_s OSMesgQueue
A message queue: a ring of messages and the threads blocked sending or receiving.
void * OSMesg
Definition os.h:73
s32 OSPri
Definition os.h:17
Umbrella header of the reconstructed libultra.
unsigned int u32
Definition ultratypes.h:20