From 66cd0c7630e2702c7d806b546db84a9142870d78 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 9 May 2020 01:00:48 +0200 Subject: [PATCH] libcortex_a9: allow access for full 1GB of DDR --- libcortex_a9/src/mmu.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/libcortex_a9/src/mmu.rs b/libcortex_a9/src/mmu.rs index 4525533..2b998b8 100644 --- a/libcortex_a9/src/mmu.rs +++ b/libcortex_a9/src/mmu.rs @@ -123,7 +123,7 @@ impl L1Table { bufferable: true, }); /* (DDR cacheable) */ - for ddr in 1..=0x1ff { + for ddr in 1..=0x3ff { self.direct_mapped_section(ddr, L1Section { global: true, shareable: true, @@ -135,19 +135,6 @@ impl L1Table { bufferable: false, }); } - /* (unassigned/reserved). */ - for undef in 0x1ff..=0x3ff { - self.direct_mapped_section(undef, L1Section { - global: false, - shareable: false, - access: AccessPermissions::PermissionFault, - tex: 0, - domain: 0, - exec: false, - cacheable: false, - bufferable: false, - }); - } /* 0x40000000 - 0x7fffffff (FPGA slave0) */ for fpga_slave in 0x400..=0x7ff { self.direct_mapped_section(fpga_slave, L1Section {