Mercurial > illumos > illumos-gate
changeset 968:762cb2d9308b
6309399 gcc and bofi don't get along
author | mike_s |
---|---|
date | Tue, 22 Nov 2005 11:25:34 -0800 |
parents | cf6233442405 |
children | d3e3a7657934 |
files | usr/src/uts/common/io/bofi.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/io/bofi.c Tue Nov 22 11:17:10 2005 -0800 +++ b/usr/src/uts/common/io/bofi.c Tue Nov 22 11:25:34 2005 -0800 @@ -4127,9 +4127,11 @@ * assume it. */ hp->allocaddr = ddi_umem_alloc( - ((int)hp->addr & pagemask) + pagemask + 1, + ((int)(uintptr_t)hp->addr & pagemask) + + pagemask + 1, KM_SLEEP, &hp->umem_cookie); - hp->addr = hp->allocaddr + ((int)hp->addr & pagemask); + hp->addr = hp->allocaddr + + ((int)(uintptr_t)hp->addr & pagemask); } /* * add to dhash and inuse lists.