Use breakpoint() instead of Debugger() in siointr1(). Debugger() doesn't

work in fast interrupt handlers because it calls db_printf() which uses
%es for string stuff and %es isn't initialized.
This commit is contained in:
Bruce Evans 1996-12-23 19:57:33 +00:00
parent 0febc3d288
commit b75504fdc2
3 changed files with 6 additions and 9 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* $Id: sio.c,v 1.153 1996/11/30 15:29:31 bde Exp $
* $Id: sio.c,v 1.154 1996/11/30 15:52:56 bde Exp $
*/
#include "opt_comconsole.h"
@ -1382,8 +1382,7 @@ siointr1(com)
if (line_status & LSR_BI) {
#if defined(DDB) && defined(BREAK_TO_DEBUGGER)
if (com->unit == comconsole) {
Debugger(
"serial console break");
breakpoint();
goto cont;
}
#endif

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* $Id: sio.c,v 1.153 1996/11/30 15:29:31 bde Exp $
* $Id: sio.c,v 1.154 1996/11/30 15:52:56 bde Exp $
*/
#include "opt_comconsole.h"
@ -1382,8 +1382,7 @@ siointr1(com)
if (line_status & LSR_BI) {
#if defined(DDB) && defined(BREAK_TO_DEBUGGER)
if (com->unit == comconsole) {
Debugger(
"serial console break");
breakpoint();
goto cont;
}
#endif

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* $Id: sio.c,v 1.153 1996/11/30 15:29:31 bde Exp $
* $Id: sio.c,v 1.154 1996/11/30 15:52:56 bde Exp $
*/
#include "opt_comconsole.h"
@ -1382,8 +1382,7 @@ siointr1(com)
if (line_status & LSR_BI) {
#if defined(DDB) && defined(BREAK_TO_DEBUGGER)
if (com->unit == comconsole) {
Debugger(
"serial console break");
breakpoint();
goto cont;
}
#endif