X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_ecc.c;h=e1400c3ec3b7f0e562e8ad0f00750f67e5be4dc2;hp=8eaffa012941d08f32e219d120c1b7f007b3df68;hb=14609dd277d69fdcddfb68bf465d06bb1cda82c7;hpb=363520161b021b7ac870c269064606e3f16feeeb diff --git a/yaffs_ecc.c b/yaffs_ecc.c index 8eaffa0..e1400c3 100644 --- a/yaffs_ecc.c +++ b/yaffs_ecc.c @@ -29,8 +29,11 @@ // 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.1 2004-11-03 08:14:07 charles Exp $"; +const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.3 2005-07-29 19:57:38 luc Exp $"; +#ifdef __KERNEL__ +#include +#endif #include "yaffs_ecc.h" @@ -265,9 +268,15 @@ int yaffs_ECCCorrectOther(unsigned char *data, unsigned nBytes, yaffs_ECCOther * // swap the bytes to correct for the wrong order unsigned char t; +#if 0 // NCB t = d0; d0 = d1; d1 = t; +#else + t = cDelta; + cDelta = lDelta; + lDelta = t; +#endif #endif bit = 0;