Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177889
b: refs/heads/master
c: 13e79b4
h: refs/heads/master
i:
  177887: 0ae5570
v: v3
  • Loading branch information
Akinobu Mita authored and Ralf Baechle committed Dec 17, 2009
1 parent f6fb1dd commit ea8e5c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: a9e8641f4c252f93875cf30cb28c0f333539f0bf
refs/heads/master: 13e79b462212ac46a046932af06117eaf7a9f77b
7 changes: 2 additions & 5 deletions trunk/arch/mips/mm/cerr-sb1.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,13 +567,10 @@ static uint32_t extract_dc(unsigned short addr, int data)
datalo = ((unsigned long long)datalohi << 32) | datalolo;
ecc = dc_ecc(datalo);
if (ecc != datahi) {
int bits = 0;
int bits;
bad_ecc |= 1 << (3-offset);
ecc ^= datahi;
while (ecc) {
if (ecc & 1) bits++;
ecc >>= 1;
}
bits = hweight8(ecc);
res |= (bits == 1) ? CP0_CERRD_DATA_SBE : CP0_CERRD_DATA_DBE;
}
printk(" %02X-%016llX", datahi, datalo);
Expand Down

0 comments on commit ea8e5c0

Please sign in to comment.