1
0
Fork 0
forked from len0rd/rockbox

Disable interrupt only in target

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@448 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-05-05 17:52:59 +00:00
parent 6c2accfda4
commit 011f1d30f6

View file

@ -32,9 +32,11 @@ void panicf( char *fmt, ...)
{ {
va_list ap; va_list ap;
#ifndef SIMULATOR
/* Disable interrupts */ /* Disable interrupts */
asm volatile ("ldc\t%0,sr" : : "r"(15<<4)); asm volatile ("ldc\t%0,sr" : : "r"(15<<4));
#endif
va_start( ap, fmt ); va_start( ap, fmt );
vsnprintf( panic_buf, sizeof(panic_buf), fmt, ap ); vsnprintf( panic_buf, sizeof(panic_buf), fmt, ap );
va_end( ap ); va_end( ap );