Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpdev Hold on to your giantlocks while ca...
details: https://anonhg.NetBSD.org/src/rev/181751429a8e
branches: trunk
changeset: 747785:181751429a8e
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Oct 02 11:01:53 2009 +0000
description:
Hold on to your giantlocks while calling device autoconfusion.
diffstat:
sys/rump/librump/rumpdev/rump_dev.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 4dbfe135f83f -r 181751429a8e sys/rump/librump/rumpdev/rump_dev.c
--- a/sys/rump/librump/rumpdev/rump_dev.c Fri Oct 02 10:14:20 2009 +0000
+++ b/sys/rump/librump/rumpdev/rump_dev.c Fri Oct 02 11:01:53 2009 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index