From 9b304404f74a6a2acfe0cd5b38635b17a16e488c Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sun, 14 Aug 2016 12:30:12 +0200 Subject: [PATCH] Enable access to the ITCM (older k9lh payloads disabled access to it). Thanks @Normmatt for reporting that bug. --- source/start.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/start.s b/source/start.s index a43cfae..f0f7f3c 100644 --- a/source/start.s +++ b/source/start.s @@ -77,8 +77,9 @@ start: mcr p15, 0, r8, c2, c0, 0 @ Data cacheable 0, 2, 4 mcr p15, 0, r8, c2, c0, 1 @ Inst cacheable 0, 2, 4 - @ Enable caches / MPU + @ Enable caches / MPU / ITCM mrc p15, 0, r0, c1, c0, 0 @ read control register + orr r0, r0, #(1<<18) @ - ITCM enable orr r0, r0, #(1<<12) @ - instruction cache enable orr r0, r0, #(1<<2) @ - data cache enable orr r0, r0, #(1<<0) @ - mpu enable