diff --git a/lib/src/al/global_asm/alSynDelete.c b/lib/src/al/global_asm/alSynDelete.c new file mode 100644 index 00000000..67877556 --- /dev/null +++ b/lib/src/al/global_asm/alSynDelete.c @@ -0,0 +1,8 @@ +/* The comment below is needed for this file to be picked up by generate_ld */ +/* RAM_POS: 0x800D2C60 */ + +#include "types.h" +#include "macros.h" +#include "libultra_internal.h" + +GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3160/alSynDelete.s") diff --git a/lib/src/os/devmgr.c b/lib/src/os/devmgr.c new file mode 100644 index 00000000..b0e8ca91 --- /dev/null +++ b/lib/src/os/devmgr.c @@ -0,0 +1,8 @@ +/* The comment below is needed for this file to be picked up by generate_ld */ +/* RAM_POS: 0x800D2760 */ + +#include "types.h" +#include "macros.h" +#include "libultra_internal.h" + +GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3160/__osDevMgrMain.s") diff --git a/lib/src/os/unknown_0D3360.c b/lib/src/os/thread.c similarity index 56% rename from lib/src/os/unknown_0D3360.c rename to lib/src/os/thread.c index fe43830f..2a9f9889 100644 --- a/lib/src/os/unknown_0D3360.c +++ b/lib/src/os/thread.c @@ -1,23 +1,15 @@ /* The comment below is needed for this file to be picked up by generate_ld */ -/* RAM_POS: 0x800D2760 */ +/* RAM_POS: 0x800D2C70 */ -#include "types.h" -#include "macros.h" #include "libultra_internal.h" -GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3160/__osDevMgrMain.s") -GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3160/__osViInit.s") -GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3160/alSynDelete.s") - void __osDequeueThread(OSThread **queue, OSThread *t) { register OSThread *pred; register OSThread *succ; pred = (OSThread *)queue; //this is actually legit.. succ = pred->next; - while (succ != NULL) - { - if (succ == t) - { + while (succ != NULL) { + if (succ == t) { pred->next = t->next; return; } diff --git a/lib/src/os/vi.c b/lib/src/os/vi.c new file mode 100644 index 00000000..6f0f1550 --- /dev/null +++ b/lib/src/os/vi.c @@ -0,0 +1,8 @@ +/* The comment below is needed for this file to be picked up by generate_ld */ +/* RAM_POS: 0x800D2B10 */ + +#include "types.h" +#include "macros.h" +#include "libultra_internal.h" + +GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3160/__osViInit.s")