summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-03-19 23:28:35 +0000
committerpeter <peter@FreeBSD.org>2002-03-19 23:28:35 +0000
commit67d7812f71c9493f9e700a850d6a02975a8ba18c (patch)
treea136d9854f5291a04ba1877737d05228a6becb30 /sys/pci
parent5a70574f9cb9fe2e3fa45b5af4c95bcb021728ad (diff)
downloadFreeBSD-src-67d7812f71c9493f9e700a850d6a02975a8ba18c.zip
FreeBSD-src-67d7812f71c9493f9e700a850d6a02975a8ba18c.tar.gz
Cast pointers to uintptr_t rather than u_int32_t. This doesn't work too
well on machines with 64 bit pointers.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_tx.c b/sys/pci/if_tx.c
index 26b6bdb..ba4121d 100644
--- a/sys/pci/if_tx.c
+++ b/sys/pci/if_tx.c
@@ -780,7 +780,7 @@ epic_common_attach(sc)
/* Align pool on PAGE_SIZE */
pool = (caddr_t)sc->pool;
- pool = (caddr_t)((u_int32_t)(pool + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1));
+ pool = (caddr_t)((uintptr_t)(pool + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1));
/* Distribute memory */
sc->tx_flist = (void *)pool;
OpenPOWER on IntegriCloud