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

buffers.
This commit is contained in:
peter 2002-02-27 23:43:19 +00:00
parent de2fade680
commit 658decccec

View File

@ -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 @@ dgbattach(dev)
}
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);
}