summaryrefslogtreecommitdiff
path: root/firmware/panic.c (follow)
Commit message (Collapse)AuthorAge
* debug: Wrap rb_backtrace with HAVE_RB_BACKTRACE instead of CPU_ARMSolomon Peachy2018-11-09
| | | | | | Basically, preparation for a non-ARM backtrace support. Change-Id: Icfd09fbc65a98f859e2a19f8d1111827a262a969
* Initial commit for the Sony NWZ linux portAmaury Pouly2017-09-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SUPPORTED SERIES: - NWZ-E450 - NWZ-E460 - NWZ-E470 - NWZ-E580 - NWZ-A10 NOTES: - bootloader makefile convert an extra font to be installed alongside the bootloader since sysfont is way too small - the toolsicon bitmap comes from the Oxygen iconset - touchscreen driver is untested TODO: - implement audio routing driver (pcm is handled by pcm-alsa) - fix playback: it crashes on illegal instruction in DEBUG builds - find out why the browser starts at / instead of /contents - implement radio support - implement return to OF for usb handling - calibrate battery curve (NB: of can report a battery level on a 0-5 scale but probabl don't want to use that ?) - implement simulator build (we need a nice image of the player) - figure out if we can detect jack removal POTENTIAL TODOS: - try to build a usb serial gadget and gdbserver Change-Id: Ic77d71e0651355d47cc4e423a40fb64a60c69a80
* AMS: Return ascodec to interrupt-based I2C2 driverMichael Sevakis2017-01-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Slightly revised and regularized internal interface. Callback is used for read and write to provide completion signal instead of having two mechanisms. 2. Lower overhead for asynchronous or alterate completion callbacks. We now only init what is required by the transfer. A couple unneeded structure members were also nixed. 3. Fixes a bug that would neglect a semaphore wait if pumping the I2C interrupts in a loop when not in thread state or interrupts are masked. 4. Corrects broken initialization order by defining KDEV_INIT, which makes kernel_init() call kernel_device_init() to initialize additional devices _after_ the kernel, threading and synchronization objects are safe to use. 5. Locking set_cpu_frequency has to be done at the highest level in system.c to ensure the boost counter and the frequency are both set in agreement. Reconcile the locking inteface between PP and AMS (the only two currently using locking there) to keep it clean. Now works fine with voltages in GIT HEAD on my Fuze v2, type 0. Previously, everything crashed and died instantly. action.c calling set_cpu_frequency from a tick was part of it. The rest may have been related to 3. and 4. Honestly, I'm not certain! Testing by Mihail Zenkov indicates it solves our problems. This will get the developer builds running again after the kernel assert code push. Change-Id: Ie245994fb3e318dd5ef48e383ce61fdd977224d4
* panicf doesn't return so why not tell GCC and $AVE :Michael Sevakis2014-08-25
| | | | Change-Id: I6096576f539bfb02b340b82fabc5019f6756b722
* Print `last logf lines on panic().Frank Gevaerts2014-01-11
| | | | | | | | | | | | If logf is enabled, panic() will print the last lines. On small screens this is more or less useless, but on large screens it can be very useful for debugging. Change-Id: I26dfc76e9ac4a2ddc2def8db1616a04f943dbba3 Reviewed-on: http://gerrit.rockbox.org/709 Reviewed-by: Thomas Martitz <kugel@rockbox.org> Reviewed-by: Frank Gevaerts <frank@gevaerts.be> Tested: Frank Gevaerts <frank@gevaerts.be>
* panicf(): fix wrong font and colors being displayed.Thomas Martitz2012-03-30
| | | | Change-Id: I57680d5857b577d731b5703e209ccc6e9511ef17
* Arm stack unwinderMarcin Bukat2012-02-22
| | | | | | | | | Simplified stack unwinder for ARM. This is port of http://www.mcternan.me.uk/ArmStackUnwinding/ backtrace() is called from UIE() on native targets and from panicf() on both native and ARM RaaA. Change-Id: I8e4b3c02490dd60b30aa372fe842d193b8929ce0
* Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with ↵Thomas Martitz2010-06-21
| | | | | | | | | | | #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
* PANIC!!!Michael Sparmann2010-03-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25000 a1c6a512-1295-4272-9138-f99709370657
* Revert accidental changes from r24723Michael Sparmann2010-02-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24724 a1c6a512-1295-4272-9138-f99709370657
* Add more information to the battery debug screen for Nano2GMichael Sparmann2010-02-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24723 a1c6a512-1295-4272-9138-f99709370657
* Set DRMODE_SOLID, uniform colors, and sysfont before clearing LCD to display ↵Andrew Mahone2009-11-14
| | | | | | panic or exception messages - see FS#10665. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23623 a1c6a512-1295-4272-9138-f99709370657
* it is mildly useful to reset the viewport to the full screen for the panic ↵Jonathan Gordon2009-08-18
| | | | | | screen.... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22396 a1c6a512-1295-4272-9138-f99709370657
* Fix yellows (the reds on mono are caused by this, again, stupid typo).Thomas Martitz2009-08-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22243 a1c6a512-1295-4272-9138-f99709370657
* panicf: Clear backdrop and print with black font on white background to ↵Thomas Martitz2009-08-10
| | | | | | | | 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
* Revert r22034 since the backlight handling functions are not consistently ↵Rob Purchase2009-07-25
| | | | | | named between targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22035 a1c6a512-1295-4272-9138-f99709370657
* Make the panic and UIE handlers turn on the backlight (needed for various ↵Rob Purchase2009-07-25
| | | | | | 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
* Clean up panicf and introduce system_exception_wait to do further target ↵Michael Sevakis2009-01-08
| | | | | | 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
* Change 18 char limit to (LCD_WIDTH/SYSFONT_WIDTH) in panicf() (FS#9282)Maurus Cuelenaere2008-08-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18288 a1c6a512-1295-4272-9138-f99709370657
* gcc 4.3.1 quite rightfully warnings when printf-style functions use "formatDaniel Stenberg2008-08-13
| | | | | | | | | 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
* * Add basic (non-working) support for NAND flashMaurus Cuelenaere2008-08-06
| | | | | | | | | * 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
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | 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
* D2: Stop panic screen from crashing instantly (seems this has been broken ↵Rob Purchase2008-05-31
| | | | | | for a while). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17670 a1c6a512-1295-4272-9138-f99709370657
* fix a comment typoDominik Riebeling2008-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17576 a1c6a512-1295-4272-9138-f99709370657
* 1) Use a separate config-<target>.h for Zen Vision(:M) (60GB)Maurus Cuelenaere2008-05-14
| | | | | | | 2) Other unrelated cleanups git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17503 a1c6a512-1295-4272-9138-f99709370657
* Commit whole Creative Zen Vision:M target tree + all related firmware/ Maurus Cuelenaere2008-04-24
| | | | | | | changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17241 a1c6a512-1295-4272-9138-f99709370657
* Fix freezing of some builds on PP5002. The PP5002 needs the not-sleep-at ↵Jens Arnold2008-04-20
| | | | | | 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
* iAudio M3: ADC driver, making buttons and battery voltage reading work. * ↵Jens Arnold2008-03-17
| | | | | | 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
* Messages queues must be guarded on both ends or else it's a race between ↵Michael Sevakis2007-05-12
| | | | | | 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
* Now charcell displays require lcd_update() for updating the main lcd content ↵Jens Arnold2007-04-06
| | | | | | like bitmap displays. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13050 a1c6a512-1295-4272-9138-f99709370657
* Do the CONFIG_LED defineJonathan Gordon2007-02-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12383 a1c6a512-1295-4272-9138-f99709370657
* more CONFIG_LED fixesJonathan Gordon2007-02-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12376 a1c6a512-1295-4272-9138-f99709370657
* avoid using #if on undefined symbols, in preparation for -WundefDaniel Stenberg2007-02-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12357 a1c6a512-1295-4272-9138-f99709370657
* UIE(), panicf(): Make reboot with ON react immediately on targets with real ↵Jens Arnold2006-10-08
| | | | | | LED (archos recorders, player). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11154 a1c6a512-1295-4272-9138-f99709370657
* Let panicf() also check on/play button on h300Peter D'Hoye2006-06-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10094 a1c6a512-1295-4272-9138-f99709370657
* Initial gcc4 warning cleanup (and some minor policing)Daniel Stenberg2005-11-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8063 a1c6a512-1295-4272-9138-f99709370657
* SH1: Changed UIE() to use the same reset method as on coldfire, using the ↵Jens Arnold2005-11-09
| | | | | | 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
* Fixed compiler error in the X11 iriver simulatorLinus Nielsen Feltzing2005-09-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7511 a1c6a512-1295-4272-9138-f99709370657
* Now panicf() shuts off the hard drive and lowers the CPU frequency, it also ↵Linus Nielsen Feltzing2005-09-12
| | | | | | reboots if ON is pressed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7510 a1c6a512-1295-4272-9138-f99709370657
* Added CPU_COLDFIRE define - one step closer to iAudio-portChristian Gmeiner2005-07-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7186 a1c6a512-1295-4272-9138-f99709370657
* Multiple choice LED configuration instead of HAVE_LED. Removes erroneous MMC ↵Jens Arnold2005-06-04
| | | | | | 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
* long policyJean-Philippe Bernardy2005-01-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5630 a1c6a512-1295-4272-9138-f99709370657
* Reverted latest change due to compiler warning. led() doesn't do anythingDaniel Stenberg2005-01-10
| | | | | | | anyway if HAVE_LED isn't defined git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5549 a1c6a512-1295-4272-9138-f99709370657
* Jean-Philippe Bernardy: only flash with LED if there is a led available!Daniel Stenberg2005-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5546 a1c6a512-1295-4272-9138-f99709370657
* Ported to iriverLinus Nielsen Feltzing2004-11-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5375 a1c6a512-1295-4272-9138-f99709370657
* Const policed pointer arguments to functions, part 1Jens Arnold2004-08-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4995 a1c6a512-1295-4272-9138-f99709370657
* Added '*PANIC*' string. Line is now wrapped on recorders. LED blinks slowly ↵Björn Stenberg2002-11-12
| | | | | | to indicate controlled state. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2835 a1c6a512-1295-4272-9138-f99709370657
* Unified player codeLinus Nielsen Feltzing2002-10-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2667 a1c6a512-1295-4272-9138-f99709370657
* Removed lcd_getfontsize(). Removed font parameters to lcd_putsxy and ↵Björn Stenberg2002-09-24
| | | | | | lcd_getstringsize. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2403 a1c6a512-1295-4272-9138-f99709370657
* Greg Haerr's new loadable font. No more #ifdef font-style, removed oldDaniel Stenberg2002-09-12
| | | | | | | propfont and loadable font code. New font file format. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2269 a1c6a512-1295-4272-9138-f99709370657