Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpkern/arch/i386 set first attached cpu a...
details: https://anonhg.NetBSD.org/src/rev/46ff2223d050
branches: trunk
changeset: 754328:46ff2223d050
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Apr 28 00:34:25 2010 +0000
description:
set first attached cpu as primary
diffstat:
sys/rump/librump/rumpkern/arch/i386/rumpcpu.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 37dbc35fc6a1 -r 46ff2223d050 sys/rump/librump/rumpkern/arch/i386/rumpcpu.c
--- a/sys/rump/librump/rumpkern/arch/i386/rumpcpu.c Wed Apr 28 00:33:45 2010 +0000
+++ b/sys/rump/librump/rumpkern/arch/i386/rumpcpu.c Wed Apr 28 00:34:25 2010 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index