Enable write buffering for the 1MB device memory section. This means using a different device framebuffer address too. You must update the firmware _and_ bootloader.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17458 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-05-11 15:39:00 +00:00
parent 63f4f68a74
commit 71372162b1
2 changed files with 8 additions and 1 deletions

View file

@ -30,7 +30,7 @@
#define TTB_SIZE (0x4000) #define TTB_SIZE (0x4000)
#define IRAM_SIZE (0x4000) #define IRAM_SIZE (0x4000)
#define TTB_BASE ((unsigned int *)TTB_BASE_ADDR) #define TTB_BASE ((unsigned int *)TTB_BASE_ADDR)
#define FRAME ((void*)0x80100000) #define FRAME ((void*)0x03f00000)
#define FRAME_SIZE (240*320*2) #define FRAME_SIZE (240*320*2)
#define DEVBSS_ATTR __attribute__((section(".devbss"),nocommon)) #define DEVBSS_ATTR __attribute__((section(".devbss"),nocommon))

View file

@ -172,6 +172,13 @@ remap_start:
cmp r2, r3 cmp r2, r3
blo 1b blo 1b
/* Map device section 0x80100000 to 0x03f00000 - buffered, not cached */
bic r1, r1, #0x0ff00000
orr r1, r1, #0x00100000
bic r1, r1, #(1 << 3)
add r2, r5, #63*4
str r1, [r2]
/* Enable MMU */ /* Enable MMU */
mov r0, #0 mov r0, #0