From ea5047767d3ec24e48a9e22f11f749da2becafaf Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sat, 8 Dec 2012 21:46:30 +0100 Subject: [PATCH] proper 002 fix --- nand-loader/source/loader.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nand-loader/source/loader.c b/nand-loader/source/loader.c index 763f366..b432e94 100644 --- a/nand-loader/source/loader.c +++ b/nand-loader/source/loader.c @@ -42,15 +42,15 @@ void __Loader_SetLowMem(void) *(vu32*)0x800000FC = 0x2B73A840; /* Flush cache */ - DCFlushRange((void *)(0x80000000), 0x3F00); + DCFlushRange((void *)(0x800000F8), 0xFF); // Set the clock settime(secs_to_ticks(time(NULL) - 946684800)); - // Remove 002 error (set to IOS 53) - *(u16 *)0x80003140 = 0x0035; + // Remove 002 error + *(u16 *)0x80003140 = 0x0038; *(u16 *)0x80003142 = 0xffff; - *(u16 *)0x80003188 = 0x0035; + *(u16 *)0x80003188 = 0x0038; *(u16 *)0x8000318A = 0xffff; DCFlushRange((void*)0x80003140, 4);