mirror of
https://github.com/LumaTeam/Luma3DS.git
synced 2026-02-22 01:44:38 +00:00
18 lines
439 B
C
18 lines
439 B
C
|
|
/*
|
||
|
|
* cache.h
|
||
|
|
* by TuxSH
|
||
|
|
*/
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
#include "types.h"
|
||
|
|
|
||
|
|
/***
|
||
|
|
The following functions flush the data cache, then waits for all memory transfers to be finished.
|
||
|
|
The data cache MUST be flushed before doing one of the following:
|
||
|
|
- rebooting
|
||
|
|
- powering down
|
||
|
|
- setting the ARM11 entrypoint to execute a function
|
||
|
|
***/
|
||
|
|
|
||
|
|
void flushEntireDCache(void);
|
||
|
|
void flushDCacheRange(void *startAddress, u32 size);
|