mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-29 03:34:07 +00:00
Rename dequeuethread.c to thread.c, move data from createthread.c to thread.c (#1464)
This commit is contained in:
parent
880e7c937c
commit
0aff024c01
3 changed files with 7 additions and 7 deletions
2
spec
2
spec
|
@ -36,7 +36,7 @@ beginseg
|
|||
include "build/src/libultra/os/initialize.o"
|
||||
include "build/src/libultra/libc/ll.o"
|
||||
include "build/src/libultra/os/exceptasm.o"
|
||||
include "build/src/libultra/os/dequeuethread.o"
|
||||
include "build/src/libultra/os/thread.o"
|
||||
include "build/src/libultra/os/destroythread.o"
|
||||
include "build/src/libultra/libc/bzero.o"
|
||||
include "build/src/libultra/os/parameters.o"
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
#include "global.h"
|
||||
#include "ultra64/asm.h"
|
||||
|
||||
__OSThreadTail __osThreadTail = { NULL, OS_PRIORITY_THREADTAIL };
|
||||
OSThread* __osRunQueue = (OSThread*)&__osThreadTail;
|
||||
OSThread* __osActiveQueue = (OSThread*)&__osThreadTail;
|
||||
OSThread* __osRunningThread = NULL;
|
||||
OSThread* __osFaultedThread = NULL;
|
||||
|
||||
void osCreateThread(OSThread* thread, OSId id, void (*entry)(void*), void* arg, void* sp, OSPri pri) {
|
||||
register u32 prevInt;
|
||||
OSIntMask mask;
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
#include "global.h"
|
||||
|
||||
__OSThreadTail __osThreadTail = { NULL, OS_PRIORITY_THREADTAIL };
|
||||
OSThread* __osRunQueue = (OSThread*)&__osThreadTail;
|
||||
OSThread* __osActiveQueue = (OSThread*)&__osThreadTail;
|
||||
OSThread* __osRunningThread = NULL;
|
||||
OSThread* __osFaultedThread = NULL;
|
||||
|
||||
void __osDequeueThread(OSThread** queue, OSThread* thread) {
|
||||
register OSThread** a2 = queue;
|
||||
register OSThread* a3 = *a2;
|
Loading…
Reference in a new issue