]> git.baikalelectronics.ru Git - kernel.git/commit
Blackfin: catch hardware errors earlier during booting
authorRobin Getz <robin.getz@analog.com>
Tue, 7 Jul 2009 20:17:09 +0000 (20:17 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 17 Sep 2009 01:31:44 +0000 (21:31 -0400)
commit362fd67cbe473803003bda510bdde9af5c80e2de
tree1732468388385c411853c67cb2b288c2f8d17cc7
parentd98ef0710c76643e4dc35a845ddba8f7f8660d79
Blackfin: catch hardware errors earlier during booting

Allow hardware errors to be caught during early portions of booting, and
leave something in the shadow console that people can use to debug their
system with (to be printed out by the bootloader on next reset).

This enables the hardare error interrupts in head.S, allowing us to find
hardware errors when they happen (well, as much as you can with a hardware
error) and prints out the trace if it is enabled.  This will catch errors
(like booting the wrong image on a 533) which previously resulted in a
infinite loop/hang, as well as random hardware errors before before
setup_arch().

To disable this debug only feature - turn off EARLY_PRINTK.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/early_printk.h
arch/blackfin/kernel/bfin_dma_5xx.c
arch/blackfin/kernel/early_printk.c
arch/blackfin/kernel/setup.c
arch/blackfin/kernel/shadow_console.c
arch/blackfin/mach-common/head.S
arch/blackfin/mm/init.c