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 set kernel boottime



details:   https://anonhg.NetBSD.org/src/rev/2c886a8e92fc
branches:  trunk
changeset: 753509:2c886a8e92fc
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Mar 31 12:16:15 2010 +0000

description:
set kernel boottime

diffstat:

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

diffs (37 lines):

diff -r 076fdf4497a2 -r 2c886a8e92fc sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c  Wed Mar 31 11:35:33 2010 +0000
+++ b/sys/rump/librump/rumpkern/rump.c  Wed Mar 31 12:16:15 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.c,v 1.156 2010/03/31 11:35:33 pooka Exp $ */
+/*     $NetBSD: rump.c,v 1.157 2010/03/31 12:16:15 pooka Exp $ */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.156 2010/03/31 11:35:33 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.157 2010/03/31 12:16:15 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -166,6 +166,7 @@
 rump__init(int rump_version)
 {
        char buf[256];
+       uint64_t sec, nsec;
        struct proc *p;
        struct lwp *l;
        int i;
@@ -184,6 +185,10 @@
                        boothowto = AB_VERBOSE;
        }
 
+       rumpuser_gettime(&sec, &nsec, &error);
+       boottime.tv_sec = sec;
+       boottime.tv_nsec = nsec;
+
        initmsgbuf(rump_msgbuf, sizeof(rump_msgbuf));
        aprint_verbose("%s%s", copyright, version);
 



Home | Main Index | Thread Index | Old Index