diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-04-21 04:35:10 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-04-21 04:35:10 +0000 |
commit | 4d3be1b1dedcb005ec1831dfd988980fdc056c71 (patch) | |
tree | cbdd356f3535b9dd1e509e345b6766045e4ec9f9 /firmware/target/arm/s3c2440/gigabeat-fx | |
parent | acbe8599b65314729b2a7d094e2b969931aa3290 (diff) |
Gigabeat FX: Small comment format change to MMU setup code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20767 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s3c2440/gigabeat-fx')
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/system-meg-fx.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/system-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/system-meg-fx.c index 700903b768..79d592091e 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/system-meg-fx.c +++ b/firmware/target/arm/s3c2440/gigabeat-fx/system-meg-fx.c @@ -60,7 +60,7 @@ default_interrupt(SPI1); default_interrupt(RTC); default_interrupt(ADC); -static void (* const irqvector[32])(void) = +static void (* const irqvector[32])(void) __attribute__((__used__)) = { EINT0, EINT1, EINT2, EINT3, EINT4_7, EINT8_23, CAM, nBATT_FLT, TICK, WDT_AC97, @@ -119,9 +119,14 @@ void system_exception_wait(void) static void set_page_tables(void) { - 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 */ + /* map every memory region to itself */ + map_section(0, 0, 0x1000, CACHE_NONE); + + /* map RAM to 0 and enable caching for it */ + map_section(0x30000000, 0, 32, CACHE_ALL); + + /* enable buffered writing for the framebuffer */ + map_section((int)FRAME, (int)FRAME, 1, BUFFERED); } void memory_init(void) |