Module Name: src
Committed By: ad
Date: Wed Apr 22 22:31:27 UTC 2009
Modified Files:
src/sys/arch/x86/x86: ioapic.c
Log Message:
Always write REDHI before REDLO, since REDLO contains the mask bit.
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/x86/x86/ioapic.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/ioapic.c
diff -u src/sys/arch/x86/x86/ioapic.c:1.40 src/sys/arch/x86/x86/ioapic.c:1.41
--- src/sys/arch/x86/x86/ioapic.c:1.40 Sun Apr 19 14:11:37 2009
+++ src/sys/arch/x86/x86/ioapic.c Wed Apr 22 22:31:26 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ioapic.c,v 1.40 2009/04/19 14:11:37 ad Exp $ */
+/* $NetBSD: ioapic.c,v 1.41 2009/04/22 22:31:26 ad 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.40 2009/04/19 14:11:37 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ioapic.c,v 1.41 2009/04/22 22:31:26 ad Exp $");
#include "opt_ddb.h"
@@ -355,9 +355,9 @@
*/
if (i >= 16)
redlo |= IOAPIC_REDLO_LEVEL | IOAPIC_REDLO_ACTLO;
- ioapic_write(sc, IOAPIC_REDLO(i), redlo);
redhi = (cpu_info_primary.ci_cpuid << IOAPIC_REDHI_DEST_SHIFT);
ioapic_write(sc, IOAPIC_REDHI(i), redhi);
+ ioapic_write(sc, IOAPIC_REDLO(i), redlo);
}
/*