forked from len0rd/rockbox
Disable interrupt
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@447 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
324cfa4f95
commit
6c2accfda4
1 changed files with 4 additions and 1 deletions
|
|
@ -31,7 +31,10 @@ char panic_buf[128];
|
||||||
void panicf( char *fmt, ...)
|
void panicf( char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
|
/* Disable interrupts */
|
||||||
|
asm volatile ("ldc\t%0,sr" : : "r"(15<<4));
|
||||||
|
|
||||||
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 );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue