diff options
Diffstat (limited to 'i386/i386at')
-rw-r--r-- | i386/i386at/com.c | 10 | ||||
-rw-r--r-- | i386/i386at/kd.c | 4 | ||||
-rw-r--r-- | i386/i386at/kd_mouse.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/i386/i386at/com.c b/i386/i386at/com.c index 4a62bb7..8f293af 100644 --- a/i386/i386at/com.c +++ b/i386/i386at/com.c @@ -826,16 +826,16 @@ int flags; * Code to be called from debugger. * */ -void compr_addr(addr) +void compr_addr(vm_offset_t addr) { /* The two line_stat prints may show different values, since * touching some of the registers constitutes changing them. */ - printf("LINE_STAT(%x) %x\n", + printf("LINE_STAT(%lu) %x\n", LINE_STAT(addr), inb(LINE_STAT(addr))); - printf("TXRX(%x) %x, INTR_ENAB(%x) %x, INTR_ID(%x) %x, LINE_CTL(%x) %x,\n\ -MODEM_CTL(%x) %x, LINE_STAT(%x) %x, MODEM_STAT(%x) %x\n", + printf("TXRX(%lu) %x, INTR_ENAB(%lu) %x, INTR_ID(%lu) %x, LINE_CTL(%lu) %x,\n\ +MODEM_CTL(%lu) %x, LINE_STAT(%lu) %x, MODEM_STAT(%lu) %x\n", TXRX(addr), inb(TXRX(addr)), INTR_ENAB(addr), inb(INTR_ENAB(addr)), INTR_ID(addr), inb(INTR_ID(addr)), @@ -845,7 +845,7 @@ MODEM_CTL(%x) %x, LINE_STAT(%x) %x, MODEM_STAT(%x) %x\n", MODEM_STAT(addr),inb(MODEM_STAT(addr))); } -int compr(unit) +int compr(int unit) { compr_addr(cominfo[unit]->address); return(0); diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c index a326626..33d1799 100644 --- a/i386/i386at/kd.c +++ b/i386/i386at/kd.c @@ -2283,7 +2283,7 @@ int ch=KC_CMD_READ; } void -kd_cmdreg_write(val) +kd_cmdreg_write(int val) { int ch=KC_CMD_WRITE; @@ -2400,7 +2400,7 @@ static int which_button[] = {0, MOUSE_LEFT, MOUSE_MIDDLE, MOUSE_RIGHT}; static struct mouse_motion moved; int -kd_kbd_magic(scancode) +kd_kbd_magic(int scancode) { int new_button = 0; diff --git a/i386/i386at/kd_mouse.c b/i386/i386at/kd_mouse.c index 9aa4b81..ef399a5 100644 --- a/i386/i386at/kd_mouse.c +++ b/i386/i386at/kd_mouse.c @@ -112,7 +112,7 @@ int mouse_char_index; /* mouse response */ * init_mouse_hw - initialize the serial port. */ void -init_mouse_hw(unit, mode) +init_mouse_hw(dev_t unit, int mode) { unsigned short base_addr = cominfo[unit]->address; |