Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/sys/arch Pull up following revision(s) (requested by chs ...



details:   https://anonhg.NetBSD.org/src/rev/994c973caf1b
branches:  netbsd-6
changeset: 773808:994c973caf1b
user:      riz <riz%NetBSD.org@localhost>
date:      Thu Feb 23 18:37:12 2012 +0000

description:
Pull up following revision(s) (requested by chs in ticket #38):
        sys/arch/amd64/amd64/machdep.c: revision 1.178
        sys/arch/x86/x86/identcpu.c: revision 1.30
        sys/arch/i386/i386/machdep.c: revision 1.720
move XEN CPU feature masking into cpu_probe() so that it's applied
to all CPUs, not just the boot CPU.

diffstat:

 sys/arch/amd64/amd64/machdep.c |  6 ++----
 sys/arch/i386/i386/machdep.c   |  6 ++----
 sys/arch/x86/x86/identcpu.c    |  5 +++--
 3 files changed, 7 insertions(+), 10 deletions(-)

diffs (80 lines):

diff -r 4957fe240470 -r 994c973caf1b sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c    Thu Feb 23 18:36:06 2012 +0000
+++ b/sys/arch/amd64/amd64/machdep.c    Thu Feb 23 18:37:12 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.175 2012/01/27 19:48:38 para Exp $       */
+/*     $NetBSD: machdep.c,v 1.175.2.1 2012/02/23 18:37:12 riz Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011
@@ -111,7 +111,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.175 2012/01/27 19:48:38 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.175.2.1 2012/02/23 18:37:12 riz Exp $");
 
 /* #define XENDEBUG_LOW  */
 
@@ -1631,8 +1631,6 @@
        __PRINTK(("init_x86_64(0x%lx)\n", first_avail));
 #endif /* XEN */
 
-       cpu_feature[0] &= ~CPUID_FEAT_BLACKLIST;
-
        cpu_init_msrs(&cpu_info_primary, true);
 
        pcb = lwp_getpcb(&lwp0);
diff -r 4957fe240470 -r 994c973caf1b sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Thu Feb 23 18:36:06 2012 +0000
+++ b/sys/arch/i386/i386/machdep.c      Thu Feb 23 18:37:12 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.717.2.1 2012/02/22 19:07:12 riz Exp $    */
+/*     $NetBSD: machdep.c,v 1.717.2.2 2012/02/23 18:37:32 riz Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.717.2.1 2012/02/22 19:07:12 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.717.2.2 2012/02/23 18:37:32 riz Exp $");
 
 #include "opt_beep.h"
 #include "opt_compat_ibcs2.h"
@@ -1324,8 +1324,6 @@
        uvm_lwp_setuarea(&lwp0, lwp0uarea);
        pcb = lwp_getpcb(&lwp0);
 
-       cpu_feature[0] &= ~CPUID_FEAT_BLACKLIST;
-
        cpu_init_msrs(&cpu_info_primary, true);
 
 #ifdef PAE
diff -r 4957fe240470 -r 994c973caf1b sys/arch/x86/x86/identcpu.c
--- a/sys/arch/x86/x86/identcpu.c       Thu Feb 23 18:36:06 2012 +0000
+++ b/sys/arch/x86/x86/identcpu.c       Thu Feb 23 18:37:12 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: identcpu.c,v 1.29 2012/02/03 05:06:51 yamt Exp $       */
+/*     $NetBSD: identcpu.c,v 1.29.2.1 2012/02/23 18:37:31 riz Exp $    */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.29 2012/02/03 05:06:51 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.29.2.1 2012/02/23 18:37:31 riz Exp $");
 
 #include "opt_xen.h"
 
@@ -700,6 +700,7 @@
                wrmsr(MSR_MISC_ENABLE, rdmsr(MSR_MISC_ENABLE) | (1<<3));
        }
 
+       ci->ci_feat_val[0] &= ~CPUID_FEAT_BLACKLIST;
        if (ci == &cpu_info_primary) {
                /* If first. Boot Processor is the cpu_feature reference. */
                for (i = 0; i < __arraycount(cpu_feature); i++) {



Home | Main Index | Thread Index | Old Index