mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-05 19:25:12 +01:00
nand ecc correction fixed
This commit is contained in:
parent
0c2fb136e8
commit
4f1ed52dd7
4
nand.c
4
nand.c
@ -265,8 +265,8 @@ void nand_initialize(void)
|
||||
int nand_correct(u32 pageno, void *data, void *ecc)
|
||||
{
|
||||
u8 *dp = (u8*)data;
|
||||
u32 *ecc_read = (u32*)((u8*)ecc)+0x30;
|
||||
u32 *ecc_calc = (u32*)((u8*)ecc)+0x40;
|
||||
u32 *ecc_read = (u32*)((u8*)ecc+0x30);
|
||||
u32 *ecc_calc = (u32*)((u8*)ecc+0x40);
|
||||
int i;
|
||||
int uncorrectable = 0;
|
||||
int corrected = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user