mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 07:02:31 -05:00
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:
parent
b01da58c55
commit
487e6a1d22
1 changed files with 2 additions and 5 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue