VAX 8600 compiler warning cleanups

Addition of DMC11 to the VAX 8600
This commit is contained in:
Mark Pizzolato 2012-12-27 07:02:23 -08:00
parent ac53fd10a6
commit 2751a22725
4 changed files with 13 additions and 6 deletions

View file

@ -473,7 +473,7 @@ return;
int32 ReadReg (int32 pa, int32 lnt) int32 ReadReg (int32 pa, int32 lnt)
{ {
int32 nexus, val; int32 val;
if (ADDR_IS_SBIA (pa)) return sbia_rd (pa, lnt); /* SBI adapter space? */ if (ADDR_IS_SBIA (pa)) return sbia_rd (pa, lnt); /* SBI adapter space? */
if (ADDR_IS_REG (pa)) { /* reg space? */ if (ADDR_IS_REG (pa)) { /* reg space? */
@ -496,8 +496,6 @@ return 0;
void WriteReg (int32 pa, int32 val, int32 lnt) void WriteReg (int32 pa, int32 val, int32 lnt)
{ {
int32 nexus;
if (ADDR_IS_SBIA (pa)) { /* SBI adapter space? */ if (ADDR_IS_SBIA (pa)) { /* SBI adapter space? */
sbia_wr (pa, val, lnt); sbia_wr (pa, val, lnt);
SET_IRQL; SET_IRQL;

View file

@ -171,7 +171,11 @@ int32 sbia_rd (int32 pa, int32 lnt)
case 0x11: /* SBIMT */ case 0x11: /* SBIMT */
return sbi_mt & SBIMT_RD; return sbi_mt & SBIMT_RD;
}
default: /* Anything else is not impl */
return 0;
}
} }
void sbia_wr (int32 pa, int32 val, int32 lnt) void sbia_wr (int32 pa, int32 val, int32 lnt)

View file

@ -971,13 +971,13 @@ else switch (lc_fnc) { /* idle, case */
case LC_FNCAC: /* array configuration */ case LC_FNCAC: /* array configuration */
lc_buf[3] = LC_FNCAC; lc_buf[3] = LC_FNCAC;
if (MEMSIZE < MAXMEMSIZE) { /* 4MB Boards */ if (MEMSIZE < MAXMEMSIZE) { /* 4MB Boards */
lc_buf[2] = (MEMSIZE >> 22); /* slots in use */ lc_buf[2] = (uint8)(MEMSIZE >> 22); /* slots in use */
for (i = 0; i < lc_buf[2]; i++) { for (i = 0; i < lc_buf[2]; i++) {
mask |= (2 << (i * 2)); /* build array mask */ mask |= (2 << (i * 2)); /* build array mask */
} }
} }
else { else {
lc_buf[2] = (MEMSIZE >> 24); /* 16MB Boards */ lc_buf[2] = (uint8)(MEMSIZE >> 24); /* 16MB Boards */
for (i = 0; i < lc_buf[2]; i++) { for (i = 0; i < lc_buf[2]; i++) {
mask |= (1 << (i * 2)); /* build array mask */ mask |= (1 << (i * 2)); /* build array mask */
} }

View file

@ -53,6 +53,7 @@ extern DEVICE tq_dev;
extern DEVICE tu_dev; extern DEVICE tu_dev;
extern DEVICE dz_dev; extern DEVICE dz_dev;
extern DEVICE xu_dev, xub_dev; extern DEVICE xu_dev, xub_dev;
extern DEVICE dmc_dev[];
extern int32 sim_switches; extern int32 sim_switches;
extern UNIT cpu_unit; extern UNIT cpu_unit;
@ -87,6 +88,10 @@ DEVICE *sim_devices[] = {
&tq_dev, &tq_dev,
&xu_dev, &xu_dev,
&xub_dev, &xub_dev,
&dmc_dev[0],
&dmc_dev[1],
&dmc_dev[2],
&dmc_dev[3],
NULL NULL
}; };