From 49660bd39f561b47e94bdf5b022548a2dc530d57 Mon Sep 17 00:00:00 2001 From: marcan Date: Sat, 7 Mar 2009 06:43:05 +0100 Subject: [PATCH] Make NAND call ahbmemflush/magic_bullshit like IOS does --- nand.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nand.c b/nand.c index 3bdd38c..2ece06d 100644 --- a/nand.c +++ b/nand.c @@ -56,6 +56,8 @@ static int ipc_tag = 0; void nand_irq(void) { int code, tag; + ahb_memflush(NAND); + magic_bullshit(0); if (ipc_code != 0) { code = ipc_code; tag = ipc_tag; @@ -76,6 +78,8 @@ inline void __nand_write32(u32 addr, u32 data) inline void __nand_wait(void) { while(__nand_read32(NAND_CMD) & NAND_BUSY_MASK); + ahb_memflush(NAND); + magic_bullshit(0); } void nand_send_command(u32 command, u32 bitmask, u32 flags, u32 num_bytes) {