aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-02-16 19:22:21 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-02-16 19:22:21 +0000
commit029f0b69a4c77caa0037a52dce5c370b842eff62 (patch)
treebb6d5745cede1bbea958f1d7e8b1a7f4cea5438f /sys/dev
parent25ef827219530b67159ace39a2c8da901d7ce494 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sio/sio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 1ca84d45dae7a..7efb6689ab1b3 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -2982,7 +2982,7 @@ siocnprobe(cp)
siogdbiobase = iobase;
siogdbunit = unit;
#if DDB > 0
- gdbdev = makedev(CDEV_MAJOR, unit);
+ gdb_arg = makedev(CDEV_MAJOR, unit);
gdb_getc = siocngetc;
gdb_putc = siocnputc;
#endif
@@ -2996,14 +2996,14 @@ siocnprobe(cp)
* If no gdb port has been specified, set it to be the console
* as some configuration files don't specify the gdb port.
*/
- if (gdbdev == NODEV && (boothowto & RB_GDB)) {
+ if (gdb_arg == NULL && (boothowto & RB_GDB)) {
printf("Warning: no GDB port specified. Defaulting to sio%d.\n",
siocnunit);
printf("Set flag 0x80 on desired GDB port in your\n");
printf("configuration file (currently sio only).\n");
siogdbiobase = siocniobase;
siogdbunit = siocnunit;
- gdbdev = makedev(CDEV_MAJOR, siocnunit);
+ gdb_arg = makedev(CDEV_MAJOR, siocnunit);
gdb_getc = siocngetc;
gdb_putc = siocnputc;
}
@@ -3090,7 +3090,7 @@ siogdbattach(port, speed)
printf("sio%d: gdb debugging port\n", unit);
siogdbunit = unit;
#if DDB > 0
- gdbdev = makedev(CDEV_MAJOR, unit);
+ gdb_arg = makedev(CDEV_MAJOR, unit);
gdb_getc = siocngetc;
gdb_putc = siocnputc;
#endif