mirror of
https://github.com/zeldaret/oot.git
synced 2025-05-10 11:03:46 +00:00
* Real rcp.h * Correction to comment in initialize.c * Try fix R4300.h * Adjust rcp.h formatting, remove defines in other headers that are now in rcp.h * Suggested changes, document a bug in the modified osAiSetNextBuffer * More rcp.h formatting changes
23 lines
425 B
ArmAsm
23 lines
425 B
ArmAsm
#include "ultra64/asm.h"
|
|
#include "ultra64/R4300.h"
|
|
|
|
.set noat
|
|
.set noreorder
|
|
|
|
.section .text
|
|
|
|
.balign 16
|
|
|
|
LEAF(osWritebackDCacheAll)
|
|
li $t0, K0BASE
|
|
li $t2, DCACHE_SIZE
|
|
addu $t1, $t0, $t2
|
|
addiu $t1, $t1, -DCACHE_LINESIZE
|
|
1:
|
|
cache (CACH_PD | C_IWBINV), ($t0)
|
|
sltu $at, $t0, $t1
|
|
bnez $at, 1b
|
|
addiu $t0, DCACHE_LINESIZE
|
|
jr $ra
|
|
nop
|
|
END(osWritebackDCacheAll)
|