remove duplicate code and fix comments

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12066 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marcoen Hirschberg 2007-01-18 15:05:06 +00:00
parent b01da58c55
commit 487e6a1d22

View file

@ -44,11 +44,8 @@ void set_ttb() {
void set_page_tables() { void set_page_tables() {
map_section(0, 0, 0x1000, CACHE_NONE); 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(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((int)FRAME, (int)FRAME, 1, BUFFERED); /* enable buffered writing for the framebuffer */ map_section((int)FRAME, (int)FRAME, 1, BUFFERED); /* enable buffered writing for the framebuffer */
} }