pci_bus_for_each_resource, transparent bridges and rsrc_nonstatic.c

Komuro komurojun-mbn at nifty.com
Thu Apr 15 08:12:21 EDT 2010


Hi,

After setting start = 0x100,
size becomes wrong value...



 	unsigned long size = end - start + 1;          <=== HERE
 	int ret = 0;
 
+#if defined(CONFIG_X86)
+	/* on x86, avoid anything < 0x100 for it is often used for
+	 * legacy platform devices */
+	if (start < 0x100)
+		start = 0x100;                          <=== HERE
+#endif
+
	if (end < start)
 		return -EINVAL;



More information about the linux-pcmcia mailing list