Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106303
b: refs/heads/master
c: 2d20098
h: refs/heads/master
i:
  106301: 1091986
  106299: 719fcfe
  106295: adbe5fb
  106287: 5e0349c
  106271: fe2fab7
  106239: a129d42
v: v3
  • Loading branch information
Robin Getz authored and Bryan Wu committed Jul 26, 2008
1 parent db8c887 commit e4002b2
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 9de3a0b6979a4839d67ca840e386ea06acaabe39
refs/heads/master: 2d2009806dd843f3adc0cbbb5d2204980f28111a
7 changes: 5 additions & 2 deletions trunk/arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,9 @@ void __init setup_arch(char **cmdline_p)

_bfin_swrst = bfin_read_SWRST();

/* If we double fault, reset the system - otherwise we hang forever */
bfin_write_SWRST(DOUBLE_FAULT);

if (_bfin_swrst & RESET_DOUBLE)
printk(KERN_INFO "Recovering from Double Fault event\n");
else if (_bfin_swrst & RESET_WDOG)
Expand Down Expand Up @@ -1017,10 +1020,10 @@ static int show_cpuinfo(struct seq_file *m, void *v)
}

/* Is it turned on? */
if (bfin_read_DMEM_CONTROL() & (ENDCPLB | DMC_ENABLE) != (ENDCPLB | DMC_ENABLE))
if ((bfin_read_DMEM_CONTROL() & (ENDCPLB | DMC_ENABLE)) != (ENDCPLB | DMC_ENABLE))
dcache_size = 0;

if (bfin_read_IMEM_CONTROL() & (IMC | ENICPLB) == (IMC | ENICPLB))
if ((bfin_read_IMEM_CONTROL() & (IMC | ENICPLB)) == (IMC | ENICPLB))
icache_size = 0;

seq_printf(m, "cache size\t: %d KB(L1 icache) "
Expand Down

0 comments on commit e4002b2

Please sign in to comment.