From: Vivek Goyal <vgoyal@in.ibm.com>
To: Greg KH <gregkh@suse.de>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: [PATCH] 64bit resources i386 proc iomem fix
Date: Mon, 19 Jun 2006 15:16:56 -0400 [thread overview]
Message-ID: <20060619191656.GE8172@in.ibm.com> (raw)
Hi Greg,
With the recent changes to 64bit resources Kconfig options, following
patch shall have to be applied to make sure things are not broken
on i386. Can you please include this patch.
Thanks
Vivek
o Avoid exporting memory more than 4G through /proc/iomem on i386 if
CONFIG_RESOURCES_64BIT is not defined. Resources subsystem can not handle
it.
o This patch is required after the recent re-organization of kconfig option
for 64bit resources.
Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
---
linux-2.6.17-rc6-1M-vivek/arch/i386/kernel/setup.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN arch/i386/kernel/setup.c~64bit-resources-i386-proc-iomem-fix arch/i386/kernel/setup.c
--- linux-2.6.17-rc6-1M/arch/i386/kernel/setup.c~64bit-resources-i386-proc-iomem-fix 2006-06-19 14:46:05.000000000 -0400
+++ linux-2.6.17-rc6-1M-vivek/arch/i386/kernel/setup.c 2006-06-19 14:46:37.000000000 -0400
@@ -1338,7 +1338,7 @@ legacy_init_iomem_resources(struct resou
probe_roms();
for (i = 0; i < e820.nr_map; i++) {
struct resource *res;
-#ifdef CONFIG_RESOURCES_32BIT
+#ifndef CONFIG_RESOURCES_64BIT
if (e820.map[i].addr + e820.map[i].size > 0x100000000ULL)
continue;
#endif
_
reply other threads:[~2006-06-19 19:17 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=20060619191656.GE8172@in.ibm.com \
--to=vgoyal@in.ibm.com \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome