summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-02-16 19:22:21 +0000
committerphk <phk@FreeBSD.org>2003-02-16 19:22:21 +0000
commit5d80f8f84b2e36b72f7a133e23179ec3f9bab94d (patch)
treebb6d5745cede1bbea958f1d7e8b1a7f4cea5438f /sys/dev/sio
parenta787a2ce231cb430833f2821d998ac1909b00335 (diff)
downloadFreeBSD-src-5d80f8f84b2e36b72f7a133e23179ec3f9bab94d.zip
FreeBSD-src-5d80f8f84b2e36b72f7a133e23179ec3f9bab94d.tar.gz
Change "dev_t gdbdev" to "void *gdb_arg", some possible paths for GDB
will not have a dev_t.
Diffstat (limited to 'sys/dev/sio')
-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 1ca84d4..7efb668 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
OpenPOWER on IntegriCloud