summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-10-06 03:49:38 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-10-06 03:49:38 +0000
commit555143d0dff1e412ee0e633932fc15cb8d924d95 (patch)
tree1d72b3fdc33e60c09f8d243a5b8aa8d9026c570c /sys/dev
parent5e0f6bc4155af4db942c0070978093aaa203d1d1 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpica/acpi_pcib.c4
-rw-r--r--sys/dev/acpica/acpi_pcib_acpi.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_pcib.c b/sys/dev/acpica/acpi_pcib.c
index c79714f3c1cd..d3c1ed12649d 100644
--- a/sys/dev/acpica/acpi_pcib.c
+++ b/sys/dev/acpica/acpi_pcib.c
@@ -292,6 +292,7 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin)
int bus;
int interrupt;
int i;
+ uintptr_t up;
FUNCTION_TRACE(__func__);
@@ -306,7 +307,8 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin)
/* find the bridge softc */
if (devclass_get_devices(acpi_pcib_devclass, &devlist, &devcount))
goto out;
- BUS_READ_IVAR(pcib, pcib, PCIB_IVAR_BUS, (uintptr_t *)&bus);
+ BUS_READ_IVAR(pcib, pcib, PCIB_IVAR_BUS, &up);
+ bus = up;
sc = NULL;
for (i = 0; i < devcount; i++) {
sc = device_get_softc(*(devlist + i));
diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c
index c79714f3c1cd..d3c1ed12649d 100644
--- a/sys/dev/acpica/acpi_pcib_acpi.c
+++ b/sys/dev/acpica/acpi_pcib_acpi.c
@@ -292,6 +292,7 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin)
int bus;
int interrupt;
int i;
+ uintptr_t up;
FUNCTION_TRACE(__func__);
@@ -306,7 +307,8 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin)
/* find the bridge softc */
if (devclass_get_devices(acpi_pcib_devclass, &devlist, &devcount))
goto out;
- BUS_READ_IVAR(pcib, pcib, PCIB_IVAR_BUS, (uintptr_t *)&bus);
+ BUS_READ_IVAR(pcib, pcib, PCIB_IVAR_BUS, &up);
+ bus = up;
sc = NULL;
for (i = 0; i < devcount; i++) {
sc = device_get_softc(*(devlist + i));