summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2008-11-06 02:31:40 +0000
committerRafaël Carré <rafael.carre@gmail.com>2008-11-06 02:31:40 +0000
commitbaecdb632c2d6c594e0b4dc4b75256d12496ea29 (patch)
tree734b6ddd39c9c865850b6976b3f5aac302650037
parentc3e667c1981c0596aff2429904450d9aa9511747 (diff)
downloadrockbox-baecdb632c2d6c594e0b4dc4b75256d12496ea29.zip
rockbox-baecdb632c2d6c594e0b4dc4b75256d12496ea29.tar.gz
rockbox-baecdb632c2d6c594e0b4dc4b75256d12496ea29.tar.bz2
rockbox-baecdb632c2d6c594e0b4dc4b75256d12496ea29.tar.xz
AS3525: use kernel_init() in bootloader
This way creation of scrolling thread doesn't risk crashing the system git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19026 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--bootloader/sansa_as3525.c1
-rw-r--r--firmware/SOURCES1
-rw-r--r--firmware/target/arm/as3525/kernel-as3525.c28
3 files changed, 30 insertions, 0 deletions
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c
index aa4d6a9..2e0f6fe 100644
--- a/bootloader/sansa_as3525.c
+++ b/bootloader/sansa_as3525.c
@@ -38,6 +38,7 @@ void main(void)
int i;
unsigned char buf[8];
+ kernel_init();
system_init();
lcd_init();
diff --git a/firmware/SOURCES b/firmware/SOURCES
index 33386f8..2c3955f 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -334,6 +334,7 @@ target/arm/pnx0101/system-pnx0101.c
#if CONFIG_CPU == AS3525
target/arm/as3525/system-as3525.c
+target/arm/as3525/kernel-as3525.c
target/arm/as3525/ata_sd_as3525.c
#endif
diff --git a/firmware/target/arm/as3525/kernel-as3525.c b/firmware/target/arm/as3525/kernel-as3525.c
new file mode 100644
index 0000000..c0f404e
--- /dev/null
+++ b/firmware/target/arm/as3525/kernel-as3525.c
@@ -0,0 +1,28 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright © 2008 Rafaël Carré
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+#include "config.h"
+#include "system.h"
+#include "kernel.h"
+
+void tick_start(unsigned int interval_in_ms)
+{
+ (void)interval_in_ms;
+}