diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-05-05 17:52:59 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-05-05 17:52:59 +0000 |
commit | 011f1d30f66fd17f5ec6381a300a64f2bf52e182 (patch) | |
tree | 4fddecd255754d1fa2681acb8e189d84c00a2f19 | |
parent | 6c2accfda4131e36508da1a171d5d4becd6ea92b (diff) |
Disable interrupt only in target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@448 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/panic.c | 4 |
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 ); |