diff --git a/splat.yaml b/splat.yaml index 9824d69..98e7da8 100644 --- a/splat.yaml +++ b/splat.yaml @@ -36,7 +36,7 @@ options: asm_data_macro: dlabel asm_jtbl_label_macro: jlabel asm_emit_size_directive: True - + segments: - name: header type: header @@ -163,7 +163,7 @@ segments: - [0x1BCC0, asm, "libultra/io/pimgr"] - [0x1BE50, asm, "libultra/io/epirawdma"] - [0x1C040, asm, "libultra/io/epidma"] - - [0x1C0E0, asm, "libultra/io/epilinkhandle"] + - [0x1C0E0, c, "libultra/io/epilinkhandle"] - [0x1C130, asm, "libultra/io/cartrominit"] - [0x1C2B0, asm, "libultra/io/devmgr"] - [0x1C670, asm, "libultra/io/piacs"] diff --git a/src/libultra/io/epilinkhandle.c b/src/libultra/io/epilinkhandle.c new file mode 100644 index 0000000..57f1ba7 --- /dev/null +++ b/src/libultra/io/epilinkhandle.c @@ -0,0 +1,11 @@ +#include "common.h" + +s32 osEPiLinkHandle(OSPiHandle *EPiHandle) +{ + u32 saveMask = __osDisableInt(); + EPiHandle->next = __osPiTable; + __osPiTable = EPiHandle; + __osRestoreInt(saveMask); + return 0; +} +