summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2002-03-19 23:28:35 +0000
committerPeter Wemm <peter@FreeBSD.org>2002-03-19 23:28:35 +0000
commit1a8f253b6492dda9dd07fce37b7339b47cef9717 (patch)
treea136d9854f5291a04ba1877737d05228a6becb30
parent41d0e15f868fa6f6bd09aa27da565cd5e3da4eee (diff)
Notes
-rw-r--r--sys/dev/tx/if_tx.c2
-rw-r--r--sys/pci/if_tx.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c
index 26b6bdb65099..ba4121df291b 100644
--- a/sys/dev/tx/if_tx.c
+++ b/sys/dev/tx/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;
diff --git a/sys/pci/if_tx.c b/sys/pci/if_tx.c
index 26b6bdb65099..ba4121df291b 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;