diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/cbus/sio.c | 9 | ||||
-rw-r--r-- | sys/pc98/pc98/sio.c | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index 07ab859..7e0c080 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -4515,10 +4515,19 @@ siogdbattach(port, speed) int s; u_char cfcr; struct siocnstate sp; + int unit = 1; /* XXX !!! */ siogdbiobase = port; gdbdefaultrate = speed; + printf("sio%d: gdb debugging port\n", unit); + siogdbunit = unit; +#if DDB > 0 + gdbdev = makedev(CDEV_MAJOR, unit); + gdb_getc = siocngetc; + gdb_putc = siocnputc; +#endif + s = spltty(); /* diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c index 07ab859..7e0c080 100644 --- a/sys/pc98/pc98/sio.c +++ b/sys/pc98/pc98/sio.c @@ -4515,10 +4515,19 @@ siogdbattach(port, speed) int s; u_char cfcr; struct siocnstate sp; + int unit = 1; /* XXX !!! */ siogdbiobase = port; gdbdefaultrate = speed; + printf("sio%d: gdb debugging port\n", unit); + siogdbunit = unit; +#if DDB > 0 + gdbdev = makedev(CDEV_MAJOR, unit); + gdb_getc = siocngetc; + gdb_putc = siocnputc; +#endif + s = spltty(); /* |