diff options
author | jhb <jhb@FreeBSD.org> | 2006-01-06 18:02:12 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-01-06 18:02:12 +0000 |
commit | 42cfa2cc9eb59ddbe448a8b539720b20fb70fad9 (patch) | |
tree | 89e8f2c595e077746d97db22f6bf3ad5cef7c2cc /sys/i386 | |
parent | 0beb1bf77b0408ab7b2210a0f1b220e2d7ff8a6d (diff) | |
download | FreeBSD-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/i386')
-rw-r--r-- | sys/i386/i386/trap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index c6945af..d392374 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -240,11 +240,11 @@ trap(frame) type); /* * Page faults need interrupts disabled until later, - * and we shouldn't enable interrupts while in a - * critical section or if servicing an NMI. + * and we shouldn't enable interrupts while holding + * a spin lock or if servicing an NMI. */ if (type != T_NMI && type != T_PAGEFLT && - td->td_critnest == 0) + td->td_md.md_spinlock_count == 0) enable_intr(); } } |