diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2008-05-31 11:30:24 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2008-05-31 11:30:24 +0000 |
commit | 3f7f5d743181b6fb24fd7cfddced0a76951268c6 (patch) | |
tree | c4ebdf7544b750ad3963c0ab11d44d9d876ce314 /firmware/target | |
parent | d701d403808608d92e58574c76ec1b27f7adad84 (diff) |
D2: Stop panic screen from crashing instantly (seems this has been broken for a while).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17670 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/tcc780x/system-tcc780x.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/target/arm/tcc780x/system-tcc780x.c b/firmware/target/arm/tcc780x/system-tcc780x.c index 54cd3ffcb6..7e07ed7171 100644 --- a/firmware/target/arm/tcc780x/system-tcc780x.c +++ b/firmware/target/arm/tcc780x/system-tcc780x.c @@ -275,7 +275,14 @@ void system_init(void) void system_reboot(void) { - SWRESET = -1; + disable_interrupt(IRQ_FIQ_DISABLED); + +#ifdef HAVE_ADJUSTABLE_CPU_FREQ + set_cpu_frequency(CPUFREQ_DEFAULT); +#endif + + /* TODO: implement reboot (eg. jump to boot ROM?) */ + while (1); } int system_memory_guard(int newmode) |