projects
/
yaffs
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9a93cbb
)
*** empty log message ***
author
charles
<charles>
Sun, 4 Apr 2004 03:47:02 +0000
(
03:47
+0000)
committer
charles
<charles>
Sun, 4 Apr 2004 03:47:02 +0000
(
03:47
+0000)
yaffs_ecc.c
patch
|
blob
|
history
diff --git
a/yaffs_ecc.c
b/yaffs_ecc.c
index 7317d7726e7525b73901bdfa52db65a8a344460f..fac02e11be94b56f366ba697d65c217c8ce1ef55 100644
(file)
--- a/
yaffs_ecc.c
+++ b/
yaffs_ecc.c
@@
-29,7
+29,7
@@
// Bit 0 of each entry indicates whether the entry has an odd or even parity, and therefore
// this bytes influence on the line parity.
// Bit 0 of each entry indicates whether the entry has an odd or even parity, and therefore
// this bytes influence on the line parity.
-const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.
2 2003-05-20 23:20:53
charles Exp $";
+const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.
3 2004-04-04 03:47:02
charles Exp $";
#include "yaffs_ecc.h"
#include "yaffs_ecc.h"
@@
-112,7
+112,7
@@
void yaffs_ECCCalculate(const unsigned char *data,unsigned char *ecc)
if(line_parity_prime & 0x01) t |= 0x01;
ecc[0] = ~t;
if(line_parity_prime & 0x01) t |= 0x01;
ecc[0] = ~t;
-#if CONFIG_YAFFS_ECC_WRONG_ORDER
+#if
def
CONFIG_YAFFS_ECC_WRONG_ORDER
// Swap the bytes into the wrong order
t = ecc[0];
ecc[0] = ecc[1];
// Swap the bytes into the wrong order
t = ecc[0];
ecc[0] = ecc[1];
@@
-145,7
+145,7
@@
int yaffs_ECCCorrect(unsigned char *data, unsigned char *read_ecc, const unsigne
unsigned byte;
unsigned bit;
unsigned byte;
unsigned bit;
-#if CONFIG_YAFFS_ECC_WRONG_ORDER
+#if
def
CONFIG_YAFFS_ECC_WRONG_ORDER
// swap the bytes to correct for the wrong order
unsigned char t;
// swap the bytes to correct for the wrong order
unsigned char t;