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; +}