summaryrefslogtreecommitdiff
path: root/firmware/panic.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-11-02 21:43:37 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-11-02 21:43:37 +0000
commitb2ffaa9d91afa5c73641b4d6cfc0401fdf655d57 (patch)
tree3f06d4f5099726d6356f7d516e00be7d7ff2333c /firmware/panic.c
parentded6894e637ad72391b4af12706044124d2076ab (diff)
Ported to iriver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5375 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/panic.c')
-rw-r--r--firmware/panic.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index 147ee6292e..c54ff4a480 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -39,9 +39,13 @@ void panicf( const char *fmt, ...)
bool state = false;
/* Disable interrupts */
+#if CONFIG_CPU == SH7034
asm volatile ("ldc\t%0,sr" : : "r"(15<<4));
+#elif CONFIG_CPU == MCF5249
+ asm volatile ("move.w #0x2700,%sr");
#endif
-
+#endif
+
va_start( ap, fmt );
vsnprintf( panic_buf, sizeof(panic_buf), fmt, ap );
va_end( ap );