summaryrefslogtreecommitdiff
path: root/firmware/panic.c
AgeCommit message (Collapse)Author
2010-06-21Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with ↵Thomas Martitz
#if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). The simulator defines PLATFORM_HOSTED, as RaaA will do (RaaA will not define SIMULATOR). The new define is to (de-)select code to compile on hosted platforms generally. Should be no functional change to targets or the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27019 a1c6a512-1295-4272-9138-f99709370657
2010-03-03PANIC!!!Michael Sparmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25000 a1c6a512-1295-4272-9138-f99709370657
2010-02-17Revert accidental changes from r24723Michael Sparmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24724 a1c6a512-1295-4272-9138-f99709370657
2010-02-17Add more information to the battery debug screen for Nano2GMichael Sparmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24723 a1c6a512-1295-4272-9138-f99709370657
2009-11-14Set DRMODE_SOLID, uniform colors, and sysfont before clearing LCD to display ↵Andrew Mahone
panic or exception messages - see FS#10665. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23623 a1c6a512-1295-4272-9138-f99709370657
2009-08-18it is mildly useful to reset the viewport to the full screen for the panic ↵Jonathan Gordon
screen.... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22396 a1c6a512-1295-4272-9138-f99709370657
2009-08-10Fix yellows (the reds on mono are caused by this, again, stupid typo).Thomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22243 a1c6a512-1295-4272-9138-f99709370657
2009-08-10panicf: Clear backdrop and print with black font on white background to ↵Thomas Martitz
prevent possible difficulties with reading it (especially on cabbiev2). Also start printing in the second row and column. This fixes the second part of FS#10503 - "Menu and WPS backdrop not cleared when shutting down or during panic" (the first part is not a bug imo), git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22242 a1c6a512-1295-4272-9138-f99709370657
2009-07-25Revert r22034 since the backlight handling functions are not consistently ↵Rob Purchase
named between targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22035 a1c6a512-1295-4272-9138-f99709370657
2009-07-25Make the panic and UIE handlers turn on the backlight (needed for various ↵Rob Purchase
colour LCDs that are unreadable without it). UIE is only changed on ARM for now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22034 a1c6a512-1295-4272-9138-f99709370657
2009-01-08Clean up panicf and introduce system_exception_wait to do further target ↵Michael Sevakis
tasks and wait for a button when an unrecoverable error has occurred (panic, UIE, etc.). Returning from that function should reboot or don't return from it. Move UIE and __div0 for ARM to its own file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19716 a1c6a512-1295-4272-9138-f99709370657
2008-08-15Change 18 char limit to (LCD_WIDTH/SYSFONT_WIDTH) in panicf() (FS#9282)Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18288 a1c6a512-1295-4272-9138-f99709370657
2008-08-13gcc 4.3.1 quite rightfully warnings when printf-style functions use "formatDaniel Stenberg
not a string literal and no format arguments". Those occurances can (will?) lead to future nasty and surprising bugs. These are just a few of a very large amount of necessary fixes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18274 a1c6a512-1295-4272-9138-f99709370657
2008-08-06* Add basic (non-working) support for NAND flashMaurus Cuelenaere
* Add panicf() handling * Add not-yet-enabled dma acceleration * Other (minor) fixes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18203 a1c6a512-1295-4272-9138-f99709370657
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg
later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-05-31D2: Stop panic screen from crashing instantly (seems this has been broken ↵Rob Purchase
for a while). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17670 a1c6a512-1295-4272-9138-f99709370657
2008-05-18fix a comment typoDominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17576 a1c6a512-1295-4272-9138-f99709370657
2008-05-141) Use a separate config-<target>.h for Zen Vision(:M) (60GB)Maurus Cuelenaere
2) Other unrelated cleanups git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17503 a1c6a512-1295-4272-9138-f99709370657
2008-04-24Commit whole Creative Zen Vision:M target tree + all related firmware/ Maurus Cuelenaere
changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17241 a1c6a512-1295-4272-9138-f99709370657
2008-04-20Fix freezing of some builds on PP5002. The PP5002 needs the not-sleep-at ↵Jens Arnold
0xNNNNNNN0-addresses fix everywhere when caching is enabled, not only in core_sleep(). Introduced a pair of inline functions to sleep and wake cores on PP for consistency. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17192 a1c6a512-1295-4272-9138-f99709370657
2008-03-17iAudio M3: ADC driver, making buttons and battery voltage reading work. * ↵Jens Arnold
Disable the multi-colour LED for now to save power. Proper handling will be added later. * Make reboot on button press work on iAudio X5, M5, M3 in panicf(), and on M3 in UIE(). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16684 a1c6a512-1295-4272-9138-f99709370657
2007-05-12Messages queues must be guarded on both ends or else it's a race between ↵Michael Sevakis
detecting a message present and missing a wakeup on thread about to wait. Keeping IRQs from interacting with the scheduler would be preferable but this should do at the moment. Add more detailed panic info regarding blocking violations so we know who. Make panicf function well enough on Gigabeat and PortalPlayer targets. Move the core sleep instructions into a CPU-specific inline to keep thing organized. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13374 a1c6a512-1295-4272-9138-f99709370657
2007-04-06Now charcell displays require lcd_update() for updating the main lcd content ↵Jens Arnold
like bitmap displays. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13050 a1c6a512-1295-4272-9138-f99709370657
2007-02-18Do the CONFIG_LED defineJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12383 a1c6a512-1295-4272-9138-f99709370657
2007-02-18more CONFIG_LED fixesJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12376 a1c6a512-1295-4272-9138-f99709370657
2007-02-17avoid using #if on undefined symbols, in preparation for -WundefDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12357 a1c6a512-1295-4272-9138-f99709370657
2006-10-08UIE(), panicf(): Make reboot with ON react immediately on targets with real ↵Jens Arnold
LED (archos recorders, player). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11154 a1c6a512-1295-4272-9138-f99709370657
2006-06-08Let panicf() also check on/play button on h300Peter D'Hoye
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10094 a1c6a512-1295-4272-9138-f99709370657
2005-11-25Initial gcc4 warning cleanup (and some minor policing)Daniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8063 a1c6a512-1295-4272-9138-f99709370657
2005-11-09SH1: Changed UIE() to use the same reset method as on coldfire, using the ↵Jens Arnold
watchdog timer. Should be more reliable this way. Disabled LED handling and added reboot-with-on for Ondio. * All: #ifdef cleanup in panicf(), added reboot-with-on for Ondio. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7799 a1c6a512-1295-4272-9138-f99709370657
2005-09-12Fixed compiler error in the X11 iriver simulatorLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7511 a1c6a512-1295-4272-9138-f99709370657
2005-09-12Now panicf() shuts off the hard drive and lowers the CPU frequency, it also ↵Linus Nielsen Feltzing
reboots if ON is pressed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7510 a1c6a512-1295-4272-9138-f99709370657
2005-07-18Added CPU_COLDFIRE define - one step closer to iAudio-portChristian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7186 a1c6a512-1295-4272-9138-f99709370657
2005-06-04Multiple choice LED configuration instead of HAVE_LED. Removes erroneous MMC ↵Jens Arnold
icon display on iriver, and saves some code on Ondio. Removed invert_led() as it is no longer used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6568 a1c6a512-1295-4272-9138-f99709370657
2005-01-22long policyJean-Philippe Bernardy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5630 a1c6a512-1295-4272-9138-f99709370657
2005-01-10Reverted latest change due to compiler warning. led() doesn't do anythingDaniel Stenberg
anyway if HAVE_LED isn't defined git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5549 a1c6a512-1295-4272-9138-f99709370657
2005-01-09Jean-Philippe Bernardy: only flash with LED if there is a led available!Daniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5546 a1c6a512-1295-4272-9138-f99709370657
2004-11-02Ported to iriverLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5375 a1c6a512-1295-4272-9138-f99709370657
2004-08-16Const policed pointer arguments to functions, part 1Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4995 a1c6a512-1295-4272-9138-f99709370657
2002-11-12Added '*PANIC*' string. Line is now wrapped on recorders. LED blinks slowly ↵Björn Stenberg
to indicate controlled state. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2835 a1c6a512-1295-4272-9138-f99709370657
2002-10-15Unified player codeLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2667 a1c6a512-1295-4272-9138-f99709370657
2002-09-24Removed lcd_getfontsize(). Removed font parameters to lcd_putsxy and ↵Björn Stenberg
lcd_getstringsize. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2403 a1c6a512-1295-4272-9138-f99709370657
2002-09-12Greg Haerr's new loadable font. No more #ifdef font-style, removed oldDaniel Stenberg
propfont and loadable font code. New font file format. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2269 a1c6a512-1295-4272-9138-f99709370657
2002-08-11First version of loadable fonts patch by Alex GitelmanBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1666 a1c6a512-1295-4272-9138-f99709370657
2002-08-08Turn off double-height in panicf()Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1618 a1c6a512-1295-4272-9138-f99709370657
2002-07-15Settings are now saved in RTC RAM on Recorder (Heikki Hannikainen).Björn Stenberg
Introduced debug menu (Heikki Hannikainen). Cleaned up settings API. Added scroll_speed init. Moved dbg_ports() and dbg_rtc() from firmware/debug.c to apps/debug_menu.c Made panic buffer static. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1347 a1c6a512-1295-4272-9138-f99709370657
2002-05-24do the lcd_puts() properly for the recorder tooDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@682 a1c6a512-1295-4272-9138-f99709370657
2002-05-05Disable interrupt only in targetLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@448 a1c6a512-1295-4272-9138-f99709370657
2002-05-05Disable interruptLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@447 a1c6a512-1295-4272-9138-f99709370657
2002-05-05adjusted to the differend LCDs and for no LCD at all... :-)Daniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@438 a1c6a512-1295-4272-9138-f99709370657