Module Name:    src
Committed By:   matt
Date:           Thu Feb 17 19:29:41 UTC 2011

Modified Files:
        src/sys/sys: userret.h

Log Message:
Make sure that biglock is unlocked before returning to userspace.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/sys/userret.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/userret.h
diff -u src/sys/sys/userret.h:1.20 src/sys/sys/userret.h:1.21
--- src/sys/sys/userret.h:1.20	Wed Feb 25 19:58:03 2009
+++ src/sys/sys/userret.h	Thu Feb 17 19:29:41 2011
@@ -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

Reply via email to