diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2007-01-18 15:05:06 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2007-01-18 15:05:06 +0000 |
commit | 487e6a1d22eb51b18c031c88d28a7e3828f068d9 (patch) | |
tree | 4e2b1758a7e58041839a386d3d3b42e082573d29 /firmware/target/arm/gigabeat/meg-fx/mmu-meg-fx.c | |
parent | b01da58c5540ea497e33fef3b2c99e92c6b2bb33 (diff) | |
download | rockbox-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/mmu-meg-fx.c')
-rw-r--r-- | firmware/target/arm/gigabeat/meg-fx/mmu-meg-fx.c | 7 |
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 | ||
45 | void set_page_tables() { | 45 | void 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 | ||