Ported to iriver

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5375 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-11-02 21:43:37 +00:00
parent ded6894e63
commit b2ffaa9d91

View file

@ -39,9 +39,13 @@ void panicf( const char *fmt, ...)
bool state = false; bool state = false;
/* Disable interrupts */ /* Disable interrupts */
#if CONFIG_CPU == SH7034
asm volatile ("ldc\t%0,sr" : : "r"(15<<4)); asm volatile ("ldc\t%0,sr" : : "r"(15<<4));
#elif CONFIG_CPU == MCF5249
asm volatile ("move.w #0x2700,%sr");
#endif #endif
#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 );