From b3f38a876439ca91b9f29a6061712cba8bf30e36 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Mon, 31 Oct 2016 14:18:29 +0100 Subject: [PATCH] Update cache.s Comments --- loader/source/cache.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/loader/source/cache.s b/loader/source/cache.s index b2a8319..c4d6477 100644 --- a/loader/source/cache.s +++ b/loader/source/cache.s @@ -25,11 +25,13 @@ .global flushCaches .type flushCaches, %function flushCaches: - @ Clean and flush data cache + @ Clean and flush both the data cache and instruction caches + @ Adpated from http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0155a/ch03s03s05.html , @ and https://github.com/gemarcano/libctr9_io/blob/master/src/ctr_system_ARM.c#L39 as well @ Note: ARM's example is actually for a 8KB DCache (which is what the 3DS has) - @ Implemented in bootROM at address 0xffff0830 + + @ Implemented in bootROM at addresses 0xffff0830 (DCache) and 0xffff0ab4 (ICache) mov r1, #0 @ segment counter outer_loop: