Title: [6712] branches/2009R1/arch/blackfin/kernel/setup.c: Fix bug[#5223] Better fix the assignment.
- Revision
- 6712
- Author
- sonicz
- Date
- 2009-06-15 02:38:11 -0500 (Mon, 15 Jun 2009)
Log Message
Fix bug[#5223] Better fix the assignment.
Modified Paths
Diff
Modified: branches/2009R1/arch/blackfin/kernel/setup.c (6711 => 6712)
--- branches/2009R1/arch/blackfin/kernel/setup.c 2009-06-15 07:36:29 UTC (rev 6711)
+++ branches/2009R1/arch/blackfin/kernel/setup.c 2009-06-15 07:38:11 UTC (rev 6712)
@@ -834,14 +834,14 @@
defined(CONFIG_BF538) || defined(CONFIG_BF539)
_bfin_swrst = bfin_read_SWRST();
#else
- _bfin_swrst = bfin_read_SYSCR();
+ _bfin_swrst = bfin_read_SYSCR() & ~0xf;
#endif
#ifdef CONFIG_DEBUG_DOUBLEFAULT_PRINT
- bfin_write_SWRST(_bfin_swrst & 0xfff0 & ~DOUBLE_FAULT);
+ bfin_write_SWRST(_bfin_swrst & ~DOUBLE_FAULT);
#endif
#ifdef CONFIG_DEBUG_DOUBLEFAULT_RESET
- bfin_write_SWRST(_bfin_swrst & 0xfff0 | DOUBLE_FAULT);
+ bfin_write_SWRST(_bfin_swrst | DOUBLE_FAULT);
#endif
#ifdef CONFIG_SMP
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits