5 .func ctr_clear_cache_kernel
6 ctr_clear_cache_kernel:
9 mcr p15, 0, r0, c7, c10, 0 @ Clean entire data cache
10 mcr p15, 0, r0, c7, c10, 5 @ Data Memory Barrier
11 mcr p15, 0, r0, c7, c5, 0 @ Invalidate entire instruction cache / Flush BTB
12 mcr p15, 0, r0, c7, c10, 4 @ Data Sync Barrier
16 @@ Clear the entire data cache / invalidate the instruction cache. Uses
17 @@ Rosalina svcCustomBackdoor to avoid svcBackdoor stack corruption
19 .global ctr_clear_cache
22 ldr r0, =ctr_clear_cache_kernel
23 svc 0x80 @ svcCustomBackdoor