PERFORCE change 195096 for review

John Baldwin jhb at FreeBSD.org
Tue Jun 21 14:08:30 UTC 2011


http://p4web.freebsd.org/@@195096?ac=10

Change 195096 by jhb at jhb_jhbbsd on 2011/06/21 14:07:54

	Be lenient if the length is wrong, but warn about it.

Affected files ...

.. //depot/projects/pci/sys/dev/acpica/acpi_pcib_acpi.c#21 edit

Differences ...

==== //depot/projects/pci/sys/dev/acpica/acpi_pcib_acpi.c#21 (text+ko) ====

@@ -211,7 +211,10 @@
 		    res->Data.Address.MinAddressFixed != ACPI_ADDRESS_FIXED ||
 		    res->Data.Address.MaxAddressFixed != ACPI_ADDRESS_FIXED)
 			break;
-		KASSERT(min + length - 1 == max, ("invalid range"));
+		if (min + length - 1 == max)
+			device_printf(sc->ap_dev,
+			    "Length mismatch for %d range: %jx vs %jx\n",
+			    (uintmax_t)max - min + 1, (uintmax_t)length);
 		flags = 0;
 		switch (res->Data.Address.ResourceType) {
 		case ACPI_MEMORY_RANGE:


More information about the p4-projects mailing list