Fix comments to relate to FreeBSD's current interrupt blocking

functionality, as opposed to the legacy spl means.
This commit is contained in:
Warner Losh 2008-09-28 03:50:34 +00:00
parent bd253e7716
commit ef7d53c441
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183428

View File

@ -336,10 +336,9 @@ trap(trapframe)
/*
* Enable hardware interrupts if they were on before the trap. If it
* was off disable all (splhigh) so we don't accidently enable it
* when doing a spllower().
* was off disable all so we don't accidently enable it when doing a
* return to userland.
*/
/*XXX do in locore? */
if (trapframe->sr & SR_INT_ENAB) {
set_intr_mask(~(trapframe->sr & ALL_INT_MASK));
enableintr();