s5pc110: checksum: fix checksum routine
authorMinkyu Kang <mk7.kang@samsung.com>
Mon, 28 Dec 2009 07:35:33 +0000 (16:35 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 28 Dec 2009 07:35:33 +0000 (16:35 +0900)
evt1 needs to sum reserved page, but evt0 doesn't need it.

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
onenand_ipl/board/samsung/universal/checksum.c

index afa79d7..bbcd088 100644 (file)
@@ -74,6 +74,8 @@ int main(int argc, char *argv[])
 
                                res = i / PAGE_SIZE;
                                if (res % 2) {
+                                       if (evt == 0)
+                                               i += PAGE_SIZE;
                                        /*
                                         * if 1st page's reverved area,
                                         * copy the data to 2nd page