From: Minkyu Kang Date: Mon, 28 Dec 2009 07:35:33 +0000 (+0900) Subject: s5pc110: checksum: fix checksum routine X-Git-Tag: JA02_20100111~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13a51b330e2bad421a01277aba4485ab7213af94;p=kernel%2Fu-boot.git s5pc110: checksum: fix checksum routine evt1 needs to sum reserved page, but evt0 doesn't need it. Signed-off-by: Minkyu Kang --- diff --git a/onenand_ipl/board/samsung/universal/checksum.c b/onenand_ipl/board/samsung/universal/checksum.c index afa79d7..bbcd088 100644 --- a/onenand_ipl/board/samsung/universal/checksum.c +++ b/onenand_ipl/board/samsung/universal/checksum.c @@ -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