Module Name: src
Committed By: pooka
Date: Fri Oct 2 11:01:53 UTC 2009
Modified Files:
src/sys/rump/librump/rumpdev: rump_dev.c
Log Message:
Hold on to your giantlocks while calling device autoconfusion.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/librump/rumpdev/rump_dev.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/rumpdev/rump_dev.c
diff -u src/sys/rump/librump/rumpdev/rump_dev.c:1.6 src/sys/rump/librump/rumpdev/rump_dev.c:1.7
--- src/sys/rump/librump/rumpdev/rump_dev.c:1.6 Thu Oct 1 21:43:29 2009
+++ src/sys/rump/librump/rumpdev/rump_dev.c Fri Oct 2 11:01:53 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_dev.c,v 1.6 2009/10/01 21:43:29 pooka Exp $ */
+/* $NetBSD: rump_dev.c,v 1.7 2009/10/02 11:01:53 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_dev.c,v 1.6 2009/10/01 21:43:29 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_dev.c,v 1.7 2009/10/02 11:01:53 pooka Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -48,6 +48,8 @@
{
extern int cold;
+ KERNEL_LOCK(1, curlwp);
+
config_init_mi();
rump_dev_cgd_init();
@@ -65,6 +67,8 @@
panic("no mainbus");
config_finalize();
+
+ KERNEL_UNLOCK_LAST(curlwp);
}
#ifdef __HAVE_DEVICE_REGISTER