1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00

Repair some warnings. These are accessing idle portions of shared memory

buffers.
This commit is contained in:
Peter Wemm 2002-02-27 23:43:19 +00:00
parent e84e28dee1
commit 10d3660bd2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91443

View File

@ -553,7 +553,7 @@ dgbattach(dev)
volatile struct board_chan *bc; volatile struct board_chan *bc;
int shrinkmem; int shrinkmem;
int nfails; int nfails;
ushort *pstat; volatile ushort *pstat;
int lowwater; int lowwater;
static int nports=0; static int nports=0;
char suffix; char suffix;
@ -878,12 +878,16 @@ dgbattach(dev)
} }
if(sc->type!=PCXEVE) { if(sc->type!=PCXEVE) {
port->txptr=mem+((bc->tseg-sc->mem_seg)<<4); port->txptr=(u_char *)(uintptr_t)(volatile void *)
port->rxptr=mem+((bc->rseg-sc->mem_seg)<<4); (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; port->txwin=port->rxwin=0;
} else { } else {
port->txptr=mem+( ((bc->tseg-sc->mem_seg)<<4) & 0x1FFF ); port->txptr=(u_char *)(uintptr_t)(volatile void *)
port->rxptr=mem+( ((bc->rseg-sc->mem_seg)<<4) & 0x1FFF ); (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->txwin=FEPWIN | ((bc->tseg-sc->mem_seg)>>9);
port->rxwin=FEPWIN | ((bc->rseg-sc->mem_seg)>>9); port->rxwin=FEPWIN | ((bc->rseg-sc->mem_seg)>>9);
} }