mirror of
https://github.com/zeldaret/oot.git
synced 2025-05-10 02:54:24 +00:00
* as0 * Fix ASOPTFLAGS for src/libc, remove unnecessary noreorder region in kanread * Suggested changes * Use %half to load the boot bss size for matching Co-authored-by: cadmic <cadmic24@gmail.com> * Wrap all of __osProbeTLB in noreorder --------- Co-authored-by: cadmic <cadmic24@gmail.com>
19 lines
392 B
ArmAsm
19 lines
392 B
ArmAsm
#include "ultra64/asm.h"
|
|
#include "ultra64/regdef.h"
|
|
#include "ultra64/R4300.h"
|
|
|
|
.text
|
|
|
|
LEAF(osWritebackDCacheAll)
|
|
li t0, K0BASE
|
|
li t2, DCACHE_SIZE
|
|
addu t1, t0, t2
|
|
addiu t1, t1, -DCACHE_LINESIZE
|
|
1:
|
|
.set noreorder
|
|
cache (CACH_PD | C_IWBINV), (t0)
|
|
bltu t0, t1, 1b
|
|
addiu t0, DCACHE_LINESIZE
|
|
.set reorder
|
|
jr ra
|
|
END(osWritebackDCacheAll)
|