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 Fix a bug introduced in r1.55, this should ...
details: https://anonhg.NetBSD.org/src/rev/d625d1ef3aff
branches: trunk
changeset: 355715:d625d1ef3aff
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Aug 11 06:18:29 2017 +0000
description:
Fix a bug introduced in r1.55, this should be LAPIC_BASE.
diffstat:
sys/arch/x86/x86/lapic.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9f928a055794 -r d625d1ef3aff sys/arch/x86/x86/lapic.c
--- a/sys/arch/x86/x86/lapic.c Fri Aug 11 00:58:37 2017 +0000
+++ b/sys/arch/x86/x86/lapic.c Fri Aug 11 06:18:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lapic.c,v 1.60 2017/07/13 00:44:14 nonaka Exp $ */
+/* $NetBSD: lapic.c,v 1.61 2017/08/11 06:18:29 maxv Exp $ */
/*-
* Copyright (c) 2000, 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lapic.c,v 1.60 2017/07/13 00:44:14 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lapic.c,v 1.61 2017/08/11 06:18:29 maxv Exp $");
#include "acpica.h"
#include "ioapic.h"
@@ -367,7 +367,7 @@
if (CPUID_TO_FAMILY(curcpu()->ci_signature) >= 6) {
lapic_base = (paddr_t)rdmsr(MSR_APICBASE);
if ((lapic_base & APICBASE_PHYSADDR) == 0) {
- lapic_base |= APICBASE_PHYSADDR;
+ lapic_base |= LAPIC_BASE;
}
wrmsr(MSR_APICBASE, lapic_base | APICBASE_EN);
lapic_base &= APICBASE_PHYSADDR;
Home |
Main Index |
Thread Index |
Old Index