summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-01-06 18:02:12 +0000
committerjhb <jhb@FreeBSD.org>2006-01-06 18:02:12 +0000
commit42cfa2cc9eb59ddbe448a8b539720b20fb70fad9 (patch)
tree89e8f2c595e077746d97db22f6bf3ad5cef7c2cc /sys/amd64
parent0beb1bf77b0408ab7b2210a0f1b220e2d7ff8a6d (diff)
downloadFreeBSD-src-42cfa2cc9eb59ddbe448a8b539720b20fb70fad9.zip
FreeBSD-src-42cfa2cc9eb59ddbe448a8b539720b20fb70fad9.tar.gz
Fix various places that were testing td_critnest to see if interrupts
should remain disabled during a trap or not to check td_md.md_spinlock_count instead.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 3ed7572..acd6140 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -220,10 +220,10 @@ trap(frame)
printf("kernel trap %d with interrupts disabled\n",
type);
/*
- * We shouldn't enable interrupts while in a critical
- * section or servicing an NMI.
+ * We shouldn't enable interrupts while holding a
+ * spin lock or servicing an NMI.
*/
- if (type != T_NMI && td->td_critnest == 0)
+ if (type != T_NMI && td->td_md.md_spinlock_count == 0)
enable_intr();
}
}
OpenPOWER on IntegriCloud