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() { void set_page_tables() { - map_section(0, 0, 0x1000, CACHE_NONE); - - map_section(0x30000000, 0, 32, CACHE_NONE); /* map RAM to 0 */ - - map_section(0x30000000, 0, 32, CACHE_ALL); /* cache the first 31 MB or RAM */ + map_section(0, 0, 0x1000, CACHE_NONE); /* map every memory region to itself */ + map_section(0x30000000, 0, 32, CACHE_ALL); /* map RAM to 0 and enable caching for it */ map_section((int)FRAME, (int)FRAME, 1, BUFFERED); /* enable buffered writing for the framebuffer */ }