Subject: [PATCH] typo for sibyte swarm board

From: Jun Sun <[email-masked]>
Date: Fri, 09 Aug 2002 11:03:56 -0700

Otherwise we will see zero-sized memory chunk...

Jun
diff -Nru smp/arch/mips/sibyte/swarm/setup.c.orig smp/arch/mips/sibyte/swarm/setup.c
--- smp/arch/mips/sibyte/swarm/setup.c.orig	Wed May 22 18:35:59 2002
+++ smp/arch/mips/sibyte/swarm/setup.c	Fri Aug  9 10:56:43 2002
@@ -367,8 +367,8 @@
 			if (!rd_flag) {
 				if (addr > MAX_RAM_SIZE)
 					continue;
-				if (addr+size > MAX_RAM_SIZE)
-					size = MAX_RAM_SIZE - (addr+size) + 1;
+				if (addr+size-1 > MAX_RAM_SIZE)
+					size = MAX_RAM_SIZE - addr + 1;
 				add_memory_region(addr, size, BOOT_MEM_RAM);
 			}
 			swarm_mem_region_addrs[swarm_mem_region_count] = addr;