From: Jun Sun <jsun@mvista.com>
To: linux-mips@oss.sgi.com
Subject: [PATCH] typo for sibyte swarm board
Date: Fri, 09 Aug 2002 11:03:56 -0700 [thread overview]
Message-ID: <3D54040C.8060703@mvista.com> (raw)
[-- 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;
reply other threads:[~2002-08-09 18:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D54040C.8060703@mvista.com \
--to=jsun@mvista.com \
--cc=linux-mips@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.