summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-01-11 15:35:34 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-01-11 15:35:34 +0000
commitcb01be69a68f3493c52a68bd61200ea5d0445204 (patch)
tree29221c16c49c9eeecf8f969bbc939066bcece56b
parent55d1955a624f781d5d5263ecc9af018e6e26f273 (diff)
downloadrockbox-cb01be69a68f3493c52a68bd61200ea5d0445204.zip
rockbox-cb01be69a68f3493c52a68bd61200ea5d0445204.tar.gz
rockbox-cb01be69a68f3493c52a68bd61200ea5d0445204.tar.bz2
rockbox-cb01be69a68f3493c52a68bd61200ea5d0445204.tar.xz
H300: set KEEP_ACT before initializing the data sections, otherwise the PCF50606 will time out and power off
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8333 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/crt0.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/crt0.S b/firmware/crt0.S
index 9dad419..0e75195 100644
--- a/firmware/crt0.S
+++ b/firmware/crt0.S
@@ -561,6 +561,14 @@ irq_handler:
bhi.b .iramloop
#endif /* !BOOTLOADER */
+#ifdef IRIVER_H300_SERIES
+ /* Set KEEP_ACT before doing the lengthy copy and zero-fill operations */
+ move.l #0x00080000,%d0
+ or.l %d0,(0xb4,%a1)
+ or.l %d0,(0xb8,%a1)
+ or.l %d0,(0xbc,%a1)
+#endif
+
/* zero out bss */
lea _edata,%a2
lea _end,%a4