mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
__osDpDeviceBusy from libreultra
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/* The comment below is needed for this file to be picked up by generate_ld */
|
||||
/* RAM_POS: 0x800D6080 */
|
||||
|
||||
#include "libultra_internal.h"
|
||||
#include "viint.h"
|
||||
|
||||
__OSViContext *__osViGetCurrentContext(void){
|
||||
return __osViCurr;
|
||||
}
|
||||
+6
-5
@@ -3,10 +3,11 @@
|
||||
|
||||
#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;
|
||||
int __osDpDeviceBusy(void) {
|
||||
register u32 stat;
|
||||
stat = IO_READ(DPC_STATUS_REG);
|
||||
if (stat & DPC_STATUS_DMA_BUSY)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user