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
41d0e15f86
commit
1a8f253b64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92734
@ -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