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 Initialize struct cpu_info::ci_cpu...



details:   https://anonhg.NetBSD.org/src/rev/58c0eaef4854
branches:  trunk
changeset: 1007194:58c0eaef4854
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Feb 10 03:23:29 2020 +0000

description:
Initialize struct cpu_info::ci_cpuname (= ci_data.cpu_name) in rump.

diffstat:

 sys/rump/librump/rumpkern/rump.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 17fa254d5d5a -r 58c0eaef4854 sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c  Sun Feb 09 22:57:39 2020 +0000
+++ b/sys/rump/librump/rumpkern/rump.c  Mon Feb 10 03:23:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.c,v 1.339 2020/01/02 15:42:27 thorpej Exp $       */
+/*     $NetBSD: rump.c,v 1.340 2020/02/10 03:23:29 riastradh Exp $     */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.339 2020/01/02 15:42:27 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.340 2020/02/10 03:23:29 riastradh Exp $");
 
 #include <sys/systm.h>
 #define ELFSIZE ARCH_ELFSIZE
@@ -383,6 +383,7 @@
                        rump_cpu_attach(ci);
                        ncpu++;
                }
+               snprintf(ci->ci_cpuname, sizeof ci->ci_cpuname, "cpu%d", i);
 
                callout_init_cpu(ci);
                softint_init(ci);



Home | Main Index | Thread Index | Old Index