From aaba6f9a537dd52dc7ad4f66371a72a75de58b16 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 19 Mar 2002 23:28:35 +0000 Subject: [PATCH] Cast pointers to uintptr_t rather than u_int32_t. This doesn't work too well on machines with 64 bit pointers. --- sys/dev/tx/if_tx.c | 2 +- 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;