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>
This commit is contained in:

committed by
Mike Frysinger

parent
3f871feaf3
commit
837ec2d56c
@@ -33,6 +33,7 @@
|
||||
#include <asm/bfin-global.h>
|
||||
#include <asm/pda.h>
|
||||
#include <asm/cplbinit.h>
|
||||
#include <asm/early_printk.h>
|
||||
#include "blackfin_sram.h"
|
||||
|
||||
/*
|
||||
@@ -113,6 +114,8 @@ asmlinkage void __init init_pda(void)
|
||||
{
|
||||
unsigned int cpu = raw_smp_processor_id();
|
||||
|
||||
early_shadow_stamp();
|
||||
|
||||
/* Initialize the PDA fields holding references to other parts
|
||||
of the memory. The content of such memory is still
|
||||
undefined at the time of the call, we are only setting up
|
||||
|
Reference in New Issue
Block a user