Relocate rodata for some OS related function (#292)

Required moving a struct def to another file, and I renamed a
 struct to something nicer

Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
This commit is contained in:
Tyler McGavran
2023-03-24 02:49:30 -04:00
committed by GitHub
parent 3b8e76054d
commit bd82bf5f0c
9 changed files with 33 additions and 92 deletions
+5 -8
View File
@@ -1,13 +1,10 @@
#include "libultra_internal.h"
// these don't feel like they belong here
// but it makes the most logical since there was printf data before
// OSThread *D_800EB3A0 = NULL;
// u32 D_80334894 = -1;
// OSThread *__osRunQueue = (OSThread *) &D_800EB3A0;
// OSThread *__osActiveQueue = (OSThread *) &D_800EB3A0;
// OSThread *__osRunningThread = NULL;
// u32 D_803348A4 = 0; // UNKNOWN
OSThreadTail __osThreadTail = {NULL, -1};
OSThread *__osRunQueue = (OSThread *) &__osThreadTail;
OSThread *__osActiveQueue = (OSThread *) &__osThreadTail;
OSThread *__osRunningThread = NULL;
OSThread *__osFaultedThread = NULL;
void __osDequeueThread(OSThread **queue, OSThread *thread) {
register OSThread **a2;