diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-14 22:49:25 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-14 22:49:25 +0000 |
commit | 981ee29f7e5f774d11e74dfb21e471abdd4d91ec (patch) | |
tree | 7d7c2b5bd84069eca455d9dd4e43a869e9e27171 /sys | |
parent | b25cb4caee6cc2f57fd768e800b02f8a2935bfa6 (diff) |
Since we run keyboards in raw mode now, NMIs can only be parity errors now;
simplify nmihand() accordingly.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hp300/hp300/machdep.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index 05086ff284c..9f17e8b18d6 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.98 2005/01/14 22:39:27 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.99 2005/01/14 22:49:24 miod Exp $ */ /* $NetBSD: machdep.c,v 1.121 1999/03/26 23:41:29 mycroft Exp $ */ /* @@ -1061,7 +1061,8 @@ badbaddr(addr) static int innmihand; /* simple mutex */ /* - * Level 7 interrupts can be caused by the keyboard or parity errors. + * Level 7 interrupts can be caused by HIL keyboards (in cooked mode only, + * but we run them in raw mode) or parity errors. */ void nmihand(frame) @@ -1073,26 +1074,14 @@ nmihand(frame) return; innmihand = 1; -#if 0 /* XXX */ - /* Check for keyboard <CRTL>+<SHIFT>+<RESET>. */ - if (kbdnmi()) { -#ifdef DDB - if (db_console) { - Debugger(); - } -#endif /* DDB */ - goto nmihand_out; /* no more work to do */ + if (parityerror(&frame)) { + innmihand = 0; + return; } -#endif - if (parityerror(&frame)) - return; /* panic?? */ printf("unexpected level 7 interrupt ignored\n"); -#if 0 -nmihand_out: -#endif innmihand = 0; } |