mirror of
https://github.com/zeldaret/oot.git
synced 2024-09-22 21:35:27 +00:00
f1d183d6fe
* Restructure files, begin header restructure * Format * us2dex * Fix parallel spelling Co-authored-by: JoshDuMan <40190173+JoshDuMan@users.noreply.github.com> * Use OS_K0_TO_PHYSICAL in place of VIRTUAL_TO_PHYSICAL in osAiSetNextBuffer * Uppercase hex, exception vector address defines * Interrupt flags 1 Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Interrupt flags 2 Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> Co-authored-by: JoshDuMan <40190173+JoshDuMan@users.noreply.github.com> Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
16 lines
328 B
C
16 lines
328 B
C
#include "global.h"
|
|
|
|
void Audio_InvalDCache(void* buf, s32 size) {
|
|
OSIntMask prevMask = osSetIntMask(1);
|
|
|
|
osInvalDCache(buf, size);
|
|
osSetIntMask(prevMask);
|
|
}
|
|
|
|
void Audio_WritebackDCache(void* buf, s32 size) {
|
|
OSIntMask prevMask = osSetIntMask(1);
|
|
|
|
osWritebackDCache(buf, size);
|
|
osSetIntMask(prevMask);
|
|
}
|