From f69ea5542668cec44027002ad2306eb6ef57be22 Mon Sep 17 00:00:00 2001
From: Andrew Morton <akpm@osdl.org>
Date: Tue, 18 May 2004 08:02:03 -0700
Subject: [PATCH] [PATCH] ppc64: 4GB firmware flash fix

From: Anton Blanchard <anton@samba.org>

From: Jake Moilanen

We want to make sure flash list is above 4 gigs, not 4 megs.
---
 arch/ppc64/kernel/rtas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/ppc64/kernel/rtas.c b/arch/ppc64/kernel/rtas.c
index 4a26e1cff6ce..89a27decfbf0 100644
--- a/arch/ppc64/kernel/rtas.c
+++ b/arch/ppc64/kernel/rtas.c
@@ -345,7 +345,7 @@ rtas_flash_firmware(void)
 	rtas_firmware_flash_list.num_blocks = 0;
 	flist = (struct flash_block_list *)&rtas_firmware_flash_list;
 	rtas_block_list = virt_to_abs(flist);
-	if (rtas_block_list >= (4UL << 20)) {
+	if (rtas_block_list >= 4UL*1024*1024*1024) {
 		printk(KERN_ALERT "FLASH: kernel bug...flash list header addr above 4GB\n");
 		return;
 	}
-- 
2.30.9