diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2009-02-11 23:56:00 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2009-02-11 23:56:00 +0000 |
commit | 63e709c7c83a3c0a462275d6b7c053804127e295 (patch) | |
tree | ba6b42e381886d8803b607e34567e14ef77436fe /firmware/export/dm320.h | |
parent | 00a9685985881866dd08d9dc38ef58e93a27917f (diff) | |
download | rockbox-63e709c7c83a3c0a462275d6b7c053804127e295.tar.gz rockbox-63e709c7c83a3c0a462275d6b7c053804127e295.zip |
Refine the routines in mmu-arm.c and move them to mmu-arm.S since the code is now 100% assembly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19980 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/dm320.h')
-rw-r--r-- | firmware/export/dm320.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/export/dm320.h b/firmware/export/dm320.h index bf7295d463..dc29f7de2d 100644 --- a/firmware/export/dm320.h +++ b/firmware/export/dm320.h | |||
@@ -32,11 +32,12 @@ | |||
32 | /* must be 16Kb (0x4000) aligned */ | 32 | /* must be 16Kb (0x4000) aligned */ |
33 | #if 0 | 33 | #if 0 |
34 | #define MEM_END 0x00900000 + (MEM*0x00100000) | 34 | #define MEM_END 0x00900000 + (MEM*0x00100000) |
35 | #define TTB_BASE ((unsigned long *)(MEM_END - TTB_SIZE)) /* End of memory */ | 35 | #define TTB_BASE_ADDR (MEM_END - TTB_SIZE) |
36 | #else | 36 | #else |
37 | #define TTB_BASE ((unsigned long *)(0x04900000 - TTB_SIZE)) /* End of memory */ | 37 | #define TTB_BASE_ADDR (0x04900000 - TTB_SIZE) |
38 | #endif | 38 | #endif |
39 | #define FRAME ((short *) ((char*)TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */ | 39 | #define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) /* End of memory */ |
40 | #define FRAME ((short *) (TTB_BASE_ADDR - LCD_BUFFER_SIZE)) /* Right before TTB */ | ||
40 | 41 | ||
41 | #define PHY_IO_BASE 0x00030000 | 42 | #define PHY_IO_BASE 0x00030000 |
42 | #define DM320_REG(addr) (*(volatile unsigned short *)(PHY_IO_BASE + (addr))) | 43 | #define DM320_REG(addr) (*(volatile unsigned short *)(PHY_IO_BASE + (addr))) |