summaryrefslogtreecommitdiff
path: root/firmware/crt0.S
diff options
context:
space:
mode:
authorTomasz Malesinski <tomal@rockbox.org>2006-02-12 23:16:05 +0000
committerTomasz Malesinski <tomal@rockbox.org>2006-02-12 23:16:05 +0000
commite7f7c3d15c2eccdc77d866fce6d4fe918567cac1 (patch)
treef24e2ec28ee4c64bb143c4ae165f5d296a202370 /firmware/crt0.S
parent6ffd3cfca4d350457ba4e0591e2731f104c35082 (diff)
Mapped iFP DRAM to 0xc00000 and enabled caching in this area.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8668 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/crt0.S')
-rw-r--r--firmware/crt0.S26
1 files changed, 25 insertions, 1 deletions
diff --git a/firmware/crt0.S b/firmware/crt0.S
index 264b9c9fe7..a207006c32 100644
--- a/firmware/crt0.S
+++ b/firmware/crt0.S
@@ -80,7 +80,31 @@ remap_start:
mov pc, r0
L_post_remap: .word remap_end
remap_end:
-#endif /* PP specific */
+
+#elif CONFIG_CPU == PNX0101
+
+#ifndef DEBUG
+ ldr r0, =0x80105000
+ mov r1, #1
+ str r1, [r0, #4]
+ mov r1, #0
+ str r1, [r0, #4]
+1: ldr r1, [r0]
+ cmp r1, #0
+ bne 1b
+ mov r1, #0x74
+ str r1, [r0, #8]
+ mov r1, #2
+ str r1, [r0, #0x18]
+ mov r1, #0x120
+ str r1, [r0, #0x30]
+ mov r1, #6
+ str r1, [r0, #4]
+ ldr r0, =1f
+ mov r15, r0
+1:
+#endif /* !DEBUG */
+#endif /* chipset specific */
#ifndef DEBUG
/* Copy exception handler code to address 0 */