Module Name:    src
Committed By:   pooka
Date:           Wed Mar 31 12:16:15 UTC 2010

Modified Files:
        src/sys/rump/librump/rumpkern: rump.c

Log Message:
set kernel boottime


To generate a diff of this commit:
cvs rdiff -u -r1.156 -r1.157 src/sys/rump/librump/rumpkern/rump.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/rump.c
diff -u src/sys/rump/librump/rumpkern/rump.c:1.156 src/sys/rump/librump/rumpkern/rump.c:1.157
--- src/sys/rump/librump/rumpkern/rump.c:1.156	Wed Mar 31 11:35:33 2010
+++ src/sys/rump/librump/rumpkern/rump.c	Wed Mar 31 12:16:15 2010
@@ -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);
 

Reply via email to