Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Make sure that biglock is unlocked before returning ...
details: https://anonhg.NetBSD.org/src/rev/a55d04e32201
branches: trunk
changeset: 762230:a55d04e32201
user: matt <matt%NetBSD.org@localhost>
date: Thu Feb 17 19:29:41 2011 +0000
description:
Make sure that biglock is unlocked before returning to userspace.
diffstat:
sys/sys/userret.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 7c9b7b38f958 -r a55d04e32201 sys/sys/userret.h
--- a/sys/sys/userret.h Thu Feb 17 19:28:46 2011 +0000
+++ b/sys/sys/userret.h Thu Feb 17 19:29:41 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: userret.h,v 1.20 2009/02/25 19:58:03 mhitch Exp $ */
+/* $NetBSD: userret.h,v 1.21 2011/02/17 19:29:41 matt Exp $ */
/*-
* Copyright (c) 1998, 2000, 2003, 2006, 2008 The NetBSD Foundation, Inc.
@@ -80,6 +80,9 @@
struct cpu_info *ci;
#endif
+ KASSERT(l->l_blcnt == 0);
+ KASSERT(curcpu()->ci_biglock_count == 0);
+
/*
* Handle "exceptional" events: pending signals, stop/exit actions,
* etc. Note that the event must be flagged BEFORE any AST is
Home |
Main Index |
Thread Index |
Old Index