* [PATCH] typo for sibyte swarm board
@ 2002-08-09 18:03 Jun Sun
0 siblings, 0 replies; only message in thread
From: Jun Sun @ 2002-08-09 18:03 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 54 bytes --]
Otherwise we will see zero-sized memory chunk...
Jun
[-- Attachment #2: junk --]
[-- Type: text/plain, Size: 574 bytes --]
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-09 18:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-09 18:03 [PATCH] typo for sibyte swarm board Jun Sun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox