Initial work on d_main

This commit is contained in:
Sean Miller
2026-03-15 16:45:12 +00:00
parent f637091a32
commit 51bfda0e1b
8 changed files with 96 additions and 4 deletions
+3
View File
@@ -12,6 +12,8 @@ extern "C" {
#define OS_THREAD_STACK_MAGIC 0xDEADBABE
typedef s32 OSPriority;
typedef enum {
OS_THREAD_STATE_EXITED = 0,
OS_THREAD_STATE_READY = 1,
@@ -97,6 +99,7 @@ s32 OSSuspendThread(OSThread *thread);
void OSSleepThread(OSThreadQueue *queue);
void OSWakeupThread(OSThreadQueue *queue);
BOOL OSSetThreadPriority(OSThread *thread, s32 prio);
OSPriority OSGetThreadPriority(OSThread *thread);
void OSClearStack(u8 val);
void OSSleepTicks(s64 ticks);