From ac89367f8fc979cd5863d882256115990d45a550 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 22 Jun 2020 02:04:56 +0200 Subject: [PATCH] uncached: setup Shareable Device memory --- 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..4db6ba5 100644 --- a/libcortex_a9/src/uncached.rs +++ b/libcortex_a9/src/uncached.rs @@ -25,9 +25,10 @@ impl UncachedSlice { for page_start in (start..(start + size)).step_by(L1_PAGE_SIZE) { L1Table::get() .update(page_start as *const (), |l1_section| { - l1_section.tex = 0b100; + // Shareable Device + l1_section.tex = 0b000; l1_section.cacheable = false; - l1_section.bufferable = false; + l1_section.bufferable = true; }); }