diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2002-06-18 21:30:37 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2002-06-18 21:30:37 +0000 |
commit | 90312e83bd816303d467436dbe2b0519108834f2 (patch) | |
tree | e59c17b9c6f153be7cb57be48355a858e1eee1e9 /sys/dev/sio/sioreg.h | |
parent | 881107f895a1cc002a567fb92db4d4e972734a43 (diff) | |
download | FreeBSD-src-90312e83bd816303d467436dbe2b0519108834f2.zip FreeBSD-src-90312e83bd816303d467436dbe2b0519108834f2.tar.gz |
Make the speed used by gdb over serial settable in the kernel configuration.
This facilitates the use in circumstances where you are using a serial
console as well. GDB doesn't support anything higher than 9600 baud (19k2
if you are lucky), but the console does.
Diffstat (limited to 'sys/dev/sio/sioreg.h')
-rw-r--r-- | sys/dev/sio/sioreg.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/sio/sioreg.h b/sys/dev/sio/sioreg.h index 072aa0f..e0ba5ad 100644 --- a/sys/dev/sio/sioreg.h +++ b/sys/dev/sio/sioreg.h @@ -123,4 +123,9 @@ #define CONSPEED 9600 #endif +/* default serial gdb speed if not set with sysctl or probed from boot */ +#ifndef GDBSPEED +#define GDBSPEED CONSPEED +#endif + #define IO_COMSIZE 8 /* 8250, 16x50 com controllers */ |