Skip to contentSkip to conversation

typo for sibyte swarm board

PATCH New Jun Sun 1 participant 1 message Aug 9, 2002 MIPS

lore
Share & tools
lore

Jun Sun

author
#0 lore raw

PATCH 1/1 typo for sibyte swarm board

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

Jun

arch/mips/sibyte/swarm/setup.c renamed from arch/mips/sibyte/swarm/setup.c.orig +2 -2
diff -Nru smp/arch/mips/sibyte/swarm/setup.c.orig smp/arch/mips/sibyte/swarm/setup.c
@@ -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;