Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Mask all i8259 interrupts in ioapic_enable().
details: https://anonhg.NetBSD.org/src/rev/2463e04370dc
branches: trunk
changeset: 773287:2463e04370dc
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Mon Jan 30 16:44:23 2012 +0000
description:
Mask all i8259 interrupts in ioapic_enable().
Should fix PR kern/45160.
diffstat:
sys/arch/x86/x86/ioapic.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 15342f8030c3 -r 2463e04370dc sys/arch/x86/x86/ioapic.c
--- a/sys/arch/x86/x86/ioapic.c Mon Jan 30 16:44:10 2012 +0000
+++ b/sys/arch/x86/x86/ioapic.c Mon Jan 30 16:44:23 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ioapic.c,v 1.45 2011/04/05 13:43:33 pgoyette Exp $ */
+/* $NetBSD: ioapic.c,v 1.46 2012/01/30 16:44:23 jakllsch Exp $ */
/*-
* Copyright (c) 2000, 2009 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ioapic.c,v 1.45 2011/04/05 13:43:33 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ioapic.c,v 1.46 2012/01/30 16:44:23 jakllsch Exp $");
#include "opt_ddb.h"
@@ -457,6 +457,8 @@
if (ioapics == NULL)
return;
+ i8259_setmask(0xffff);
+
if (ioapics->sc_flags & IOAPIC_PICMODE) {
aprint_debug_dev(ioapics->sc_dev,
"writing to IMCR to disable pics\n");
Home |
Main Index |
Thread Index |
Old Index