Decompile `osEPiLinkHandle`

This commit is contained in:
gijs 2024-05-23 22:32:56 +02:00
parent 2062f09ac0
commit 56c27dd0fb
2 changed files with 13 additions and 2 deletions

View File

@ -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"]

View File

@ -0,0 +1,11 @@
#include "common.h"
s32 osEPiLinkHandle(OSPiHandle *EPiHandle)
{
u32 saveMask = __osDisableInt();
EPiHandle->next = __osPiTable;
__osPiTable = EPiHandle;
__osRestoreInt(saveMask);
return 0;
}