diff options
author | peter <peter@FreeBSD.org> | 2002-02-27 23:43:19 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-02-27 23:43:19 +0000 |
commit | 658decccecd650044f7c4a5a6ddd4563fb0f0a90 (patch) | |
tree | c901ac64958fbf17c7fa477c3c61c56a89a593f2 | |
parent | de2fade680bb394b5cb991e9f974cfd1c9e6a8f5 (diff) | |
download | FreeBSD-src-658decccecd650044f7c4a5a6ddd4563fb0f0a90.zip FreeBSD-src-658decccecd650044f7c4a5a6ddd4563fb0f0a90.tar.gz |
Repair some warnings. These are accessing idle portions of shared memory
buffers.
-rw-r--r-- | sys/dev/dgb/dgb.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/dev/dgb/dgb.c b/sys/dev/dgb/dgb.c index 04663fd..bc7137e 100644 --- a/sys/dev/dgb/dgb.c +++ b/sys/dev/dgb/dgb.c @@ -553,7 +553,7 @@ dgbattach(dev) volatile struct board_chan *bc; int shrinkmem; int nfails; - ushort *pstat; + volatile ushort *pstat; int lowwater; static int nports=0; char suffix; @@ -878,12 +878,16 @@ load_fep: } if(sc->type!=PCXEVE) { - port->txptr=mem+((bc->tseg-sc->mem_seg)<<4); - port->rxptr=mem+((bc->rseg-sc->mem_seg)<<4); + port->txptr=(u_char *)(uintptr_t)(volatile void *) + (mem+((bc->tseg-sc->mem_seg)<<4)); + port->rxptr=(u_char *)(uintptr_t)(volatile void *) + (mem+((bc->rseg-sc->mem_seg)<<4)); port->txwin=port->rxwin=0; } else { - port->txptr=mem+( ((bc->tseg-sc->mem_seg)<<4) & 0x1FFF ); - port->rxptr=mem+( ((bc->rseg-sc->mem_seg)<<4) & 0x1FFF ); + port->txptr=(u_char *)(uintptr_t)(volatile void *) + (mem+( ((bc->tseg-sc->mem_seg)<<4) & 0x1FFF )); + port->rxptr=(u_char *)(uintptr_t)(volatile void *) + (mem+( ((bc->rseg-sc->mem_seg)<<4) & 0x1FFF )); port->txwin=FEPWIN | ((bc->tseg-sc->mem_seg)>>9); port->rxwin=FEPWIN | ((bc->rseg-sc->mem_seg)>>9); } |