diff options
author | Peter Wemm <peter@FreeBSD.org> | 2002-03-19 23:28:35 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2002-03-19 23:28:35 +0000 |
commit | 1a8f253b6492dda9dd07fce37b7339b47cef9717 (patch) | |
tree | a136d9854f5291a04ba1877737d05228a6becb30 /sys | |
parent | 41d0e15f868fa6f6bd09aa27da565cd5e3da4eee (diff) | |
download | src-1a8f253b6492dda9dd07fce37b7339b47cef9717.tar.gz src-1a8f253b6492dda9dd07fce37b7339b47cef9717.zip |
Cast pointers to uintptr_t rather than u_int32_t. This doesn't work too
well on machines with 64 bit pointers.
Notes
Notes:
svn path=/head/; revision=92734
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/tx/if_tx.c | 2 | ||||
-rw-r--r-- | sys/pci/if_tx.c | 2 |
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; |