diff options
author | Robin Getz <robin.getz@analog.com> | 2009-07-06 10:53:19 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-09-16 21:31:43 -0400 |
commit | 3f871feaf3390c6d6e578818f867917c2e4738a2 (patch) | |
tree | 3b7ebc72793903361bb4b108bd829b21ede3fc01 /arch/blackfin/kernel/setup.c | |
parent | 53e18df745b6f833df07ead62ded09ebae3b0303 (diff) |
Blackfin: add an early shadow console
Add a memory based shadow console to keep a copy of the printk buffer in a
location which can be found externally. This allows bootloaders to locate
and utilize the log buffer in case of silent (early/resume/etc...) crashes.
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/kernel/setup.c')
-rw-r--r-- | arch/blackfin/kernel/setup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index 6dbf21930a9..3974764acd2 100644 --- a/arch/blackfin/kernel/setup.c +++ b/arch/blackfin/kernel/setup.c | |||
@@ -810,6 +810,8 @@ void __init setup_arch(char **cmdline_p) | |||
810 | { | 810 | { |
811 | unsigned long sclk, cclk; | 811 | unsigned long sclk, cclk; |
812 | 812 | ||
813 | enable_shadow_console(); | ||
814 | |||
813 | /* Check to make sure we are running on the right processor */ | 815 | /* Check to make sure we are running on the right processor */ |
814 | if (unlikely(CPUID != bfin_cpuid())) | 816 | if (unlikely(CPUID != bfin_cpuid())) |
815 | printk(KERN_ERR "ERROR: Not running on ADSP-%s: unknown CPUID 0x%04x Rev 0.%d\n", | 817 | printk(KERN_ERR "ERROR: Not running on ADSP-%s: unknown CPUID 0x%04x Rev 0.%d\n", |