1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 by wavey@wavey.org
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
27 static char panic_buf
[128];
30 * "Dude. This is pretty fucked-up, right here."
32 void panicf( char *fmt
, ...)
37 /* Disable interrupts */
38 asm volatile ("ldc\t%0,sr" : : "r"(15<<4));
42 vsnprintf( panic_buf
, sizeof(panic_buf
), fmt
, ap
);
45 #ifdef HAVE_LCD_CHARCELLS
46 lcd_double_height(false);
47 lcd_puts(0,0,panic_buf
);
48 #elif defined(HAVE_LCD_BITMAP)
51 lcd_setfont(FONT_SYSFIXED
);
52 lcd_putsxy(0,0,panic_buf
);