* [PATCH] 64bit resources i386 proc iomem fix
@ 2006-06-19 19:16 Vivek Goyal
0 siblings, 0 replies; only message in thread
From: Vivek Goyal @ 2006-06-19 19:16 UTC (permalink / raw)
To: Greg KH; +Cc: linux kernel mailing list
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
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-19 19:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-19 19:16 [PATCH] 64bit resources i386 proc iomem fix Vivek Goyal
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