mirror of
https://github.com/n64decomp/perfect_dark.git
synced 2024-11-27 08:00:27 +00:00
Decompile osDpSetStatus
This commit is contained in:
parent
f30222117a
commit
bc919f5a45
@ -93,6 +93,8 @@
|
||||
build/ROMID/lib/ultra/os/setintmask.o (section); \
|
||||
build/ROMID/lib/ultra/os/recvmesg.o (section); \
|
||||
build/ROMID/lib/lib_48830.o (section); \
|
||||
build/ROMID/lib/ultra/io/dpsetstat.o (section); \
|
||||
build/ROMID/lib/ultra/os/getthreadpri.o (section); \
|
||||
build/ROMID/lib/ultra/os/sendmesg.o (section); \
|
||||
build/ROMID/lib/ultra/os/stoptimer.o (section); \
|
||||
build/ROMID/lib/ultra/os/settimer.o (section); \
|
||||
|
@ -49,22 +49,3 @@ glabel osViGetNextFramebuffer
|
||||
/* 488a8: 03e00008 */ jr $ra
|
||||
/* 488ac: 27bd0028 */ addiu $sp,$sp,0x28
|
||||
);
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel osDpSetStatus
|
||||
/* 488b0: 3c0ea410 */ lui $t6,0xa410
|
||||
/* 488b4: 03e00008 */ jr $ra
|
||||
/* 488b8: adc4000c */ sw $a0,0xc($t6)
|
||||
/* 488bc: 00000000 */ nop
|
||||
);
|
||||
|
||||
extern OSThread *__osRunningThread;
|
||||
|
||||
OSPri osGetThreadPri(OSThread *thread)
|
||||
{
|
||||
if (thread == NULL) {
|
||||
thread = __osRunningThread;
|
||||
}
|
||||
|
||||
return thread->priority;
|
||||
}
|
||||
|
6
src/lib/ultra/io/dpsetstat.c
Normal file
6
src/lib/ultra/io/dpsetstat.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include "libultra_internal.h"
|
||||
|
||||
void osDpSetStatus(u32 data)
|
||||
{
|
||||
IO_WRITE(DPC_STATUS_REG, data);
|
||||
}
|
12
src/lib/ultra/os/getthreadpri.c
Normal file
12
src/lib/ultra/os/getthreadpri.c
Normal file
@ -0,0 +1,12 @@
|
||||
#include <ultra64.h>
|
||||
|
||||
extern OSThread *__osRunningThread;
|
||||
|
||||
OSPri osGetThreadPri(OSThread *thread)
|
||||
{
|
||||
if (thread == NULL) {
|
||||
thread = __osRunningThread;
|
||||
}
|
||||
|
||||
return thread->priority;
|
||||
}
|
Loading…
Reference in New Issue
Block a user