diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-10-30 22:07:19 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-10-30 22:07:19 +0000 |
commit | 71bf1b2189577c363d7365046ad46537eabe647b (patch) | |
tree | f569ca5b57e8d4a56842ee83630a129475a570ab | |
parent | dbf0fef52a362550bbf490ab678526e5e1fa4ebf (diff) |
Initialize random seed for secondary processors.
-rw-r--r-- | sys/arch/mvme88k/mvme88k/machdep.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c index 23a8322cc89..acd6a9a38d9 100644 --- a/sys/arch/mvme88k/mvme88k/machdep.c +++ b/sys/arch/mvme88k/mvme88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.213 2008/06/27 17:22:14 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.214 2008/10/30 22:07:18 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -159,10 +159,6 @@ int bufcachepercent = BUFCACHEPERCENT; char machine[] = MACHINE; /* cpu "architecture" */ char cpu_model[120]; -#if defined(DDB) || NKSYMS > 0 -extern char *esym; -#endif - int boothowto; /* set in locore.S */ int bootdev; /* set in locore.S */ int cputyp; /* set in locore.S */ @@ -738,6 +734,7 @@ secondary_main() microuptime(&ci->ci_schedstate.spc_runtime); ci->ci_curproc = NULL; + ci->ci_randseed = random(); SET(ci->ci_flags, CIF_ALIVE); set_psr(get_psr() & ~PSR_IND); |