init_main.c (35319) | init_main.c (36119) |
---|---|
1/* 2 * Copyright (c) 1995 Terrence R. Lambert 3 * All rights reserved. 4 * 5 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993 6 * The Regents of the University of California. All rights reserved. 7 * (c) UNIX System Laboratories, Inc. 8 * All or some portions of this file are derived from material licensed --- 25 unchanged lines hidden (view full) --- 34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 * SUCH DAMAGE. 40 * 41 * @(#)init_main.c 8.9 (Berkeley) 1/21/94 | 1/* 2 * Copyright (c) 1995 Terrence R. Lambert 3 * All rights reserved. 4 * 5 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993 6 * The Regents of the University of California. All rights reserved. 7 * (c) UNIX System Laboratories, Inc. 8 * All or some portions of this file are derived from material licensed --- 25 unchanged lines hidden (view full) --- 34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 * SUCH DAMAGE. 40 * 41 * @(#)init_main.c 8.9 (Berkeley) 1/21/94 |
42 * $Id: init_main.c,v 1.90 1998/04/17 22:36:49 des Exp $ | 42 * $Id: init_main.c,v 1.91 1998/04/19 23:31:54 julian Exp $ |
43 */ 44 45#include "opt_devfs.h" 46 47#include <sys/param.h> 48#include <sys/file.h> 49#include <sys/filedesc.h> 50#include <sys/kernel.h> --- 376 unchanged lines hidden (view full) --- 427 /* 428 * Now can look at time, having had a chance to verify the time 429 * from the file system. Reset p->p_rtime as it may have been 430 * munched in mi_switch() after the time got set. Set 431 * p->p_runtime to be consistent with this unmunching. 432 */ 433 microtime(&proc0.p_stats->p_start); 434 timevalclear(&proc0.p_rtime); | 43 */ 44 45#include "opt_devfs.h" 46 47#include <sys/param.h> 48#include <sys/file.h> 49#include <sys/filedesc.h> 50#include <sys/kernel.h> --- 376 unchanged lines hidden (view full) --- 427 /* 428 * Now can look at time, having had a chance to verify the time 429 * from the file system. Reset p->p_rtime as it may have been 430 * munched in mi_switch() after the time got set. Set 431 * p->p_runtime to be consistent with this unmunching. 432 */ 433 microtime(&proc0.p_stats->p_start); 434 timevalclear(&proc0.p_rtime); |
435 microruntime(&proc0.p_runtime); | 435 microuptime(&proc0.p_runtime); |
436 437 /* 438 * Give the ``random'' number generator a thump. 439 * XXX: Does read_random() contain enough bits to be used here ? 440 */ 441 nanotime(&ts); 442 srandom(ts.tv_sec ^ ts.tv_nsec); 443 --- 187 unchanged lines hidden --- | 436 437 /* 438 * Give the ``random'' number generator a thump. 439 * XXX: Does read_random() contain enough bits to be used here ? 440 */ 441 nanotime(&ts); 442 srandom(ts.tv_sec ^ ts.tv_nsec); 443 --- 187 unchanged lines hidden --- |