linux-mips
[Top] [All Lists]

[PATCH] typo for sibyte swarm board

To: linux-mips@oss.sgi.com
Subject: [PATCH] typo for sibyte swarm board
From: Jun Sun <jsun@mvista.com>
Date: Fri, 09 Aug 2002 11:03:56 -0700
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408
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;
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] typo for sibyte swarm board, Jun Sun <=