summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c
index 8da63781347..e8815274bb1 100644
--- a/sys/arch/amd64/amd64/machdep.c
+++ b/sys/arch/amd64/amd64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.102 2009/11/23 16:21:54 pirofti Exp $ */
+/* $OpenBSD: machdep.c,v 1.103 2010/03/01 07:08:27 dlg Exp $ */
/* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */
/*-
@@ -1768,7 +1768,8 @@ splassert_check(int wantipl, const char *func)
{
int cpl = curcpu()->ci_ilevel;
- if (cpl < wantipl) {
+ if (cpl < wantipl ||
+ (curcpu()->ci_idepth && cpl > wantipl)) {
splassert_fail(wantipl, cpl, func);
}
}