-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some libultra struct types (#677)
- Loading branch information
1 parent
c9b9c2d
commit 3f353d7
Showing
12 changed files
with
127 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
#include "libultra_internal.h" | ||
|
||
NO_REORDER OSThread* __osThreadTail = NULL; | ||
NO_REORDER u32 __osTest = -1; | ||
NO_REORDER OSThread* __osRunQueue = (OSThread*) &__osThreadTail; | ||
NO_REORDER OSThread* __osActiveQueue = (OSThread*) &__osThreadTail; | ||
OSThread* __osRunningThread = NULL; | ||
OSThread* __osFaultedThread = NULL; | ||
struct __osThreadTail __osThreadTail = { NULL, -1 }; | ||
OSThread *__osRunQueue = (OSThread *) &__osThreadTail; | ||
OSThread *__osActiveQueue = (OSThread *) &__osThreadTail; | ||
OSThread *__osRunningThread = { 0 }; | ||
OSThread *__osFaultedThread = { 0 }; | ||
|
||
void __osDequeueThread(OSThread** queue, OSThread* thread) { | ||
register OSThread** a2; | ||
register OSThread* a3; | ||
a2 = queue; | ||
a3 = *a2; | ||
while (a3 != NULL) { | ||
if (a3 == thread) { | ||
*a2 = thread->next; | ||
void __osDequeueThread(register OSThread **queue, register OSThread *t) { | ||
register OSThread *pred; | ||
register OSThread *succ; | ||
|
||
pred = (OSThread *) queue; | ||
succ = pred->next; | ||
|
||
while (succ != NULL) { | ||
if (succ == t) { | ||
pred->next = t->next; | ||
return; | ||
} | ||
a2 = &a3->next; | ||
a3 = *a2; | ||
pred = succ; | ||
succ = pred->next; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.