From 4c5c7cb4f2e41bc510d8d637dde1d4d15ed3e189 Mon Sep 17 00:00:00 2001 From: Ryan Myers Date: Thu, 21 Oct 2021 08:54:31 -0400 Subject: [PATCH] Split files up more --- lib/src/os/{unknown_0D5EC0.c => contpfs.c} | 5 ----- lib/src/os/dp.c | 12 ++++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) rename lib/src/os/{unknown_0D5EC0.c => contpfs.c} (83%) create mode 100644 lib/src/os/dp.c diff --git a/lib/src/os/unknown_0D5EC0.c b/lib/src/os/contpfs.c similarity index 83% rename from lib/src/os/unknown_0D5EC0.c rename to lib/src/os/contpfs.c index 00860e71..df2ee653 100644 --- a/lib/src/os/unknown_0D5EC0.c +++ b/lib/src/os/contpfs.c @@ -13,8 +13,3 @@ GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3020/__osGetId.s") GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3020/__osCheckId.s") GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3020/__osPfsRWInode.s") GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3020/__osPfsSelectBank.s") -GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3020/__osDpDeviceBusy.s") - -__OSViContext *__osViGetCurrentContext(void){ - return __osViCurr; -} diff --git a/lib/src/os/dp.c b/lib/src/os/dp.c new file mode 100644 index 00000000..54ac9a8d --- /dev/null +++ b/lib/src/os/dp.c @@ -0,0 +1,12 @@ +/* The comment below is needed for this file to be picked up by generate_ld */ +/* RAM_POS: 0x800D6050 */ + +#include "macros.h" +#include "libultra_internal.h" +#include "viint.h" + +GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3020/__osDpDeviceBusy.s") + +__OSViContext *__osViGetCurrentContext(void){ + return __osViCurr; +}