From 511c906d4d136e8abbbe8f82dcdb194434f559da Mon Sep 17 00:00:00 2001 From: pca006132 Date: Thu, 20 Aug 2020 11:52:44 +0800 Subject: [PATCH] libcortex_a9/uncached: fixed mmu setting --- libcortex_a9/src/uncached.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libcortex_a9/src/uncached.rs b/libcortex_a9/src/uncached.rs index 464f6ac..8712e27 100644 --- a/libcortex_a9/src/uncached.rs +++ b/libcortex_a9/src/uncached.rs @@ -23,10 +23,11 @@ impl UncachedSlice { assert_eq!(start & (L1_PAGE_SIZE - 1), 0); for page_start in (start..(start + size)).step_by(L1_PAGE_SIZE) { + // non-shareable device L1Table::get() .update(page_start as *const (), |l1_section| { - l1_section.tex = 0b100; - l1_section.cacheable = false; + l1_section.tex = 0b10; + l1_section.cacheable = true; l1_section.bufferable = false; }); }