Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72876
b: refs/heads/master
c: 7728ec3
h: refs/heads/master
v: v3
  • Loading branch information
Robin Getz authored and Bryan Wu committed Oct 29, 2007
1 parent 36aef9d commit 5a2bf36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ad1ec7154d7e26c1bd82c03c44690ba2b566f2f
refs/heads/master: 7728ec33faf88605fb871b9b0ecf8e45d4359678
11 changes: 9 additions & 2 deletions trunk/arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,15 @@ void __init setup_arch(char **cmdline_p)

init_leds();

_bfin_swrst = bfin_read_SWRST();

if (_bfin_swrst & RESET_DOUBLE)
printk(KERN_INFO "Recovering from Double Fault event\n");
else if (_bfin_swrst & RESET_WDOG)
printk(KERN_INFO "Recovering from Watchdog event\n");
else if (_bfin_swrst & RESET_SOFTWARE)
printk(KERN_NOTICE "Reset caused by Software reset\n");

printk(KERN_INFO "Blackfin support (C) 2004-2007 Analog Devices, Inc.\n");
if (bfin_compiled_revid() == 0xffff)
printk(KERN_INFO "Compiled for ADSP-%s Rev any\n", CPU);
Expand Down Expand Up @@ -402,8 +411,6 @@ void __init setup_arch(char **cmdline_p)
if (l1_length > L1_DATA_A_LENGTH)
panic("L1 data memory overflow\n");

_bfin_swrst = bfin_read_SWRST();

/* Copy atomic sequences to their fixed location, and sanity check that
these locations are the ones that we advertise to userspace. */
memcpy((void *)FIXED_CODE_START, &fixed_code_start,
Expand Down

0 comments on commit 5a2bf36

Please sign in to comment.