aboutsummaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-03-07 00:07:24 -0500
committerKevin O'Connor <kevin@koconnor.net>2009-03-07 00:07:24 -0500
commit75f49b36499aed665c0cd438d12c098447ab21d9 (patch)
tree4c6df604067d7bfaef65c94435f65c915d2d3fa5 /src/misc.c
parentd10e4449df0d870b75b62869d080fb5a74aa51ec (diff)
downloadseabios-hppa-75f49b36499aed665c0cd438d12c098447ab21d9.zip
seabios-hppa-75f49b36499aed665c0cd438d12c098447ab21d9.tar.gz
seabios-hppa-75f49b36499aed665c0cd438d12c098447ab21d9.tar.bz2
Register int02 handler (nmi); disable NMI by default.
Rename handle_nmi to handle_02 to be more consistent with other handlers. Actually register handle_02. Don't panic in nmi handler - just log by default. Set the disable nmi bit when accessing the cmos index register.
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc.c b/src/misc.c
index 6548249..bece61e 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -54,11 +54,11 @@ handle_10(struct bregs *regs)
// dont do anything, since the VGA BIOS handles int10h requests
}
+// NMI handler
void VISIBLE16
-handle_nmi()
+handle_02()
{
- debug_isr(DEBUG_ISR_nmi);
- panic("NMI Handler called\n");
+ debug_isr(DEBUG_ISR_02);
}
void