Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xen Initialize mutex before use. Lets me boot a...
details: https://anonhg.NetBSD.org/src/rev/2deb66cc29f3
branches: trunk
changeset: 769747:2deb66cc29f3
user: cegger <cegger%NetBSD.org@localhost>
date: Wed Sep 21 15:26:47 2011 +0000
description:
Initialize mutex before use. Lets me boot a dom0 kernel again
without a lockdebug panic.
diffstat:
sys/arch/xen/xen/evtchn.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 1fc4b0486614 -r 2deb66cc29f3 sys/arch/xen/xen/evtchn.c
--- a/sys/arch/xen/xen/evtchn.c Wed Sep 21 14:38:51 2011 +0000
+++ b/sys/arch/xen/xen/evtchn.c Wed Sep 21 15:26:47 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: evtchn.c,v 1.54 2011/09/20 00:12:24 jym Exp $ */
+/* $NetBSD: evtchn.c,v 1.55 2011/09/21 15:26:47 cegger Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -54,7 +54,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: evtchn.c,v 1.54 2011/09/20 00:12:24 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: evtchn.c,v 1.55 2011/09/21 15:26:47 cegger Exp $");
#include "opt_xen.h"
#include "isa.h"
@@ -179,6 +179,7 @@
void
events_init(void)
{
+ mutex_init(&evtchn_lock, MUTEX_DEFAULT, IPL_NONE);
debug_port = bind_virq_to_evtch(VIRQ_DEBUG);
KASSERT(debug_port != -1);
Home |
Main Index |
Thread Index |
Old Index