From 4a681c84c73ea5f06e3780a9e28c9b51e9903df4 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 14 May 2010 18:47:57 +0000 Subject: Make sure we initialize sched_lock before we try to use it. ok miod@, thib@, oga@, jsing@ --- sys/kern/init_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/kern/init_main.c') diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 3f63d3d9cfa..9d7601dbcae 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.166 2010/01/12 04:06:26 deraadt Exp $ */ +/* $OpenBSD: init_main.c,v 1.167 2010/05/14 18:47:56 kettenis Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -216,6 +216,7 @@ main(void *framep) printf("%s\n", copyright); KERNEL_LOCK_INIT(); + SCHED_LOCK_INIT(); uvm_init(); disk_init(); /* must come before autoconfiguration */ -- cgit v1.2.3