Module Name:    src
Committed By:   rmind
Date:           Sat Jul 16 14:46:18 UTC 2011

Modified Files:
        src/sys/arch/xen/x86: cpu.c

Log Message:
Initialise cpus_running to 1 on Xen, as it was done on x86.

Problem analysed by hannken@.  Fixes PR/45062.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/xen/x86/cpu.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/xen/x86/cpu.c
diff -u src/sys/arch/xen/x86/cpu.c:1.59 src/sys/arch/xen/x86/cpu.c:1.60
--- src/sys/arch/xen/x86/cpu.c:1.59	Wed Jun 15 20:50:02 2011
+++ src/sys/arch/xen/x86/cpu.c	Sat Jul 16 14:46:18 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.c,v 1.59 2011/06/15 20:50:02 rmind Exp $	*/
+/*	$NetBSD: cpu.c,v 1.60 2011/07/16 14:46:18 rmind Exp $	*/
 /* NetBSD: cpu.c,v 1.18 2004/02/20 17:35:01 yamt Exp  */
 
 /*-
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.59 2011/06/15 20:50:02 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.60 2011/07/16 14:46:18 rmind Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -174,7 +174,7 @@
 static void	cpu_set_tss_gates(struct cpu_info *ci);
 
 uint32_t cpus_attached = 1;
-uint32_t cpus_running = 0;
+uint32_t cpus_running = 1;
 
 uint32_t phycpus_attached = 0;
 uint32_t phycpus_running = 0;

Reply via email to