summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-09-26 05:40:56 +0000
committerimp <imp@FreeBSD.org>2008-09-26 05:40:56 +0000
commit1669e8782fe7b03180edc3a43e2cfce2668f6969 (patch)
tree8d8cb19bd80a94bc08d4857e6a167664dbaf651a
parent6c5eec712488e5e30f6410a354ed0c9b10afc3f4 (diff)
downloadFreeBSD-src-1669e8782fe7b03180edc3a43e2cfce2668f6969.zip
FreeBSD-src-1669e8782fe7b03180edc3a43e2cfce2668f6969.tar.gz
Use some casting to get the right addresses. This is likely unwise
code, but will be OK until there's a 64-bit siba... With this change, SENTRY5 kernel now compiles for mips, the last of the holdouts.
-rw-r--r--sys/dev/siba/siba_pcib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/siba/siba_pcib.c b/sys/dev/siba/siba_pcib.c
index a872c55..d43f54c 100644
--- a/sys/dev/siba/siba_pcib.c
+++ b/sys/dev/siba/siba_pcib.c
@@ -157,7 +157,7 @@ siba_pcib_attach(device_t dev)
sc->sc_bh = rman_get_bushandle(sc->sc_mem);
device_printf(dev, "bridge registers addr 0x%08x vaddr %p\n",
- sc->sc_bh, rman_get_virtual(sc->sc_mem));
+ (uint32_t)sc->sc_bh, rman_get_virtual(sc->sc_mem));
SBPCI_WRITE_4(sc, 0x0000, 0x05);
SBPCI_WRITE_4(sc, 0x0000, 0x0D);
@@ -179,7 +179,8 @@ siba_pcib_attach(device_t dev)
device_printf(dev, "cannot map PCI configuration space\n");
return (ENXIO);
}
- device_printf(dev, "mapped pci config space at 0x%08x\n", sc_cfg_hand);
+ device_printf(dev, "mapped pci config space at 0x%08x\n",
+ (uint32_t)sc_cfg_hand);
/*
* Setup configuration, io, and dma space windows.
OpenPOWER on IntegriCloud