summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/gigabeat/meg-fx/mmu-meg-fx.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/firmware/target/arm/gigabeat/meg-fx/mmu-meg-fx.c b/firmware/target/arm/gigabeat/meg-fx/mmu-meg-fx.c
index 615b04a26c..6142213f0c 100644
--- a/firmware/target/arm/gigabeat/meg-fx/mmu-meg-fx.c
+++ b/firmware/target/arm/gigabeat/meg-fx/mmu-meg-fx.c
@@ -44,11 +44,8 @@ void set_ttb() {
44 44
45void set_page_tables() { 45void set_page_tables() {
46 46
47 map_section(0, 0, 0x1000, CACHE_NONE); 47 map_section(0, 0, 0x1000, CACHE_NONE); /* map every memory region to itself */
48 48 map_section(0x30000000, 0, 32, CACHE_ALL); /* map RAM to 0 and enable caching for it */
49 map_section(0x30000000, 0, 32, CACHE_NONE); /* map RAM to 0 */
50
51 map_section(0x30000000, 0, 32, CACHE_ALL); /* cache the first 31 MB or RAM */
52 map_section((int)FRAME, (int)FRAME, 1, BUFFERED); /* enable buffered writing for the framebuffer */ 49 map_section((int)FRAME, (int)FRAME, 1, BUFFERED); /* enable buffered writing for the framebuffer */
53} 50}
54 51