linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 64bit resources start end value fix
@ 2006-06-21 17:29 Vivek Goyal
  2006-06-21 20:22 ` Andrew Morton
  2006-06-24  2:45 ` Greg KH
  0 siblings, 2 replies; 13+ messages in thread
From: Vivek Goyal @ 2006-06-21 17:29 UTC (permalink / raw)
  To: Greg KH; +Cc: linux kernel mailing list, Morton Andrew Morton

Hi Greg,

While changing 64bit kconfig options to CONFIG_RESOURCES_64BIT, I forgot
to update the values of start and end fields in ioport_resource and
iomem_resource.

Following patch applies on top of your reworked 64 bit patches and
is based on Andrew Morton's patch. Please apply.

http://marc.theaimsgroup.com/?l=linux-mm-commits&m=115087406130723&w=2

Thanks
Vivek



o Update start and end fields for 32bit and 64bit resources.

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
---

 linux-2.6.17-1M-vivek/kernel/resource.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -puN kernel/resource.c~64bit-resources-start-end-value-fix kernel/resource.c
--- linux-2.6.17-1M/kernel/resource.c~64bit-resources-start-end-value-fix	2006-06-21 12:43:43.000000000 -0400
+++ linux-2.6.17-1M-vivek/kernel/resource.c	2006-06-21 12:44:59.000000000 -0400
@@ -23,7 +23,7 @@
 
 struct resource ioport_resource = {
 	.name	= "PCI IO",
-	.start	= 0x0000,
+	.start	= 0,
 	.end	= IO_SPACE_LIMIT,
 	.flags	= IORESOURCE_IO,
 };
@@ -32,8 +32,8 @@ EXPORT_SYMBOL(ioport_resource);
 
 struct resource iomem_resource = {
 	.name	= "PCI mem",
-	.start	= 0UL,
-	.end	= ~0UL,
+	.start	= 0,
+	.end	= -1,
 	.flags	= IORESOURCE_MEM,
 };
 
_

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2006-06-24 13:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-21 17:29 [PATCH] 64bit resources start end value fix Vivek Goyal
2006-06-21 20:22 ` Andrew Morton
2006-06-21 20:41   ` Vivek Goyal
2006-06-21 20:44     ` Greg KH
2006-06-21 20:56       ` Vivek Goyal
2006-06-21 21:01       ` Andrew Morton
2006-06-21 20:58     ` Andrew Morton
2006-06-21 23:15       ` Vivek Goyal
2006-06-21 23:27         ` Andrew Morton
2006-06-22  6:09           ` Greg KH
2006-06-24  2:45 ` Greg KH
2006-06-24 13:15   ` Vivek Goyal
2006-06-24 13:24     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).