Cast pointers to uintptr_t rather than u_int32_t. This doesn't work too
well on machines with 64 bit pointers.
This commit is contained in:
parent
ec33d1fb07
commit
aaba6f9a53
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user