diff options
author | kan <kan@FreeBSD.org> | 2004-02-05 01:56:43 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2004-02-05 01:56:43 +0000 |
commit | 8f796dca97febb2b0e668cd3613331a54c6a74c7 (patch) | |
tree | b0e2cc0cdb632a2786c857eb38a7809fd634eacd /sys/amd64 | |
parent | 9a226ff388c34edb12ae278cd6e5f3357fe6796a (diff) | |
download | FreeBSD-src-8f796dca97febb2b0e668cd3613331a54c6a74c7.zip FreeBSD-src-8f796dca97febb2b0e668cd3613331a54c6a74c7.tar.gz |
Eliminate global cons_unavailable flag and replace it by the status
bit maintained on a per-device basis. Single variable is inadequate
on machines running with multiple consoles enabled.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/db_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/db_interface.c b/sys/amd64/amd64/db_interface.c index 077c914..6a49ef9 100644 --- a/sys/amd64/amd64/db_interface.c +++ b/sys/amd64/amd64/db_interface.c @@ -87,7 +87,7 @@ kdb_trap(int type, int code, struct amd64_saved_state *regs) * our breakpoints by disarming our breakpoints and fixing up * %eip. */ - if (cons_unavail && ddb_mode) { + if (cn_unavailable() != 0 && ddb_mode) { if (type == T_TRCTRAP) { regs->tf_rflags &= ~PSL_T; return (1); @@ -327,7 +327,7 @@ Debugger(const char *msg) * OK if the call is for the debugger hotkey but not if the call * is a weak form of panicing. */ - if (cons_unavail && !(boothowto & RB_GDB)) + if (cn_unavailable() != 0 && !(boothowto & RB_GDB)) return; if (atomic_cmpset_acq_int(&in_Debugger, 0, 1)) { |