summaryrefslogtreecommitdiffstats
path: root/firmware/panic.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-05-05 17:52:59 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-05-05 17:52:59 +0000
commit011f1d30f66fd17f5ec6381a300a64f2bf52e182 (patch)
tree4fddecd255754d1fa2681acb8e189d84c00a2f19 /firmware/panic.c
parent6c2accfda4131e36508da1a171d5d4becd6ea92b (diff)
downloadrockbox-011f1d30f66fd17f5ec6381a300a64f2bf52e182.tar.gz
rockbox-011f1d30f66fd17f5ec6381a300a64f2bf52e182.tar.bz2
rockbox-011f1d30f66fd17f5ec6381a300a64f2bf52e182.zip
Disable interrupt only in target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@448 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/panic.c')
-rw-r--r--firmware/panic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index 0c3a0795e0..8ae1408ea1 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -32,9 +32,11 @@ void panicf( char *fmt, ...)
{
va_list ap;
+#ifndef SIMULATOR
/* Disable interrupts */
asm volatile ("ldc\t%0,sr" : : "r"(15<<4));
-
+#endif
+
va_start( ap, fmt );
vsnprintf( panic_buf, sizeof(panic_buf), fmt, ap );
va_end( ap );