Module Name: src
Committed By: pooka
Date: Wed Apr 28 00:34:25 UTC 2010
Modified Files:
src/sys/rump/librump/rumpkern/arch/i386: rumpcpu.c
Log Message:
set first attached cpu as primary
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/rump/librump/rumpkern/arch/i386/rumpcpu.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/rump/librump/rumpkern/arch/i386/rumpcpu.c
diff -u src/sys/rump/librump/rumpkern/arch/i386/rumpcpu.c:1.8 src/sys/rump/librump/rumpkern/arch/i386/rumpcpu.c:1.9
--- src/sys/rump/librump/rumpkern/arch/i386/rumpcpu.c:1.8 Tue Apr 27 23:30:30 2010
+++ src/sys/rump/librump/rumpkern/arch/i386/rumpcpu.c Wed Apr 28 00:34:25 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpcpu.c,v 1.8 2010/04/27 23:30:30 pooka Exp $ */
+/* $NetBSD: rumpcpu.c,v 1.9 2010/04/28 00:34:25 pooka Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpcpu.c,v 1.8 2010/04/27 23:30:30 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpcpu.c,v 1.9 2010/04/28 00:34:25 pooka Exp $");
#include <sys/param.h>
@@ -43,6 +43,9 @@
rump_cpu_attach(struct cpu_info *ci)
{
+ if (cpu_info_list == NULL)
+ ci->ci_flags |= CPUF_PRIMARY;
+
/* XXX: wrong order, but ... */
ci->ci_next = cpu_info_list;
cpu_info_list = ci;