summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/gigabeat/meg-fx
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2007-01-18 15:05:06 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2007-01-18 15:05:06 +0000
commit487e6a1d22eb51b18c031c88d28a7e3828f068d9 (patch)
tree4e2b1758a7e58041839a386d3d3b42e082573d29 /firmware/target/arm/gigabeat/meg-fx
parentb01da58c5540ea497e33fef3b2c99e92c6b2bb33 (diff)
downloadrockbox-487e6a1d22eb51b18c031c88d28a7e3828f068d9.tar.gz
rockbox-487e6a1d22eb51b18c031c88d28a7e3828f068d9.zip
remove duplicate code and fix comments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12066 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/gigabeat/meg-fx')
-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() {
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 */
}