diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S index a36375ac6b15..b891c3334bbb 100644 --- a/sys/amd64/amd64/exception.S +++ b/sys/amd64/amd64/exception.S @@ -304,6 +304,9 @@ IDTVEC(int0x80_syscall) ENTRY(fork_trampoline) MTX_EXIT(_sched_lock, %ecx) + sti /* XXX: we need this for kernel threads + created very early before interrupts + are enabled */ #ifdef SMP cmpl $0,_switchtime diff --git a/sys/amd64/amd64/exception.s b/sys/amd64/amd64/exception.s index a36375ac6b15..b891c3334bbb 100644 --- a/sys/amd64/amd64/exception.s +++ b/sys/amd64/amd64/exception.s @@ -304,6 +304,9 @@ IDTVEC(int0x80_syscall) ENTRY(fork_trampoline) MTX_EXIT(_sched_lock, %ecx) + sti /* XXX: we need this for kernel threads + created very early before interrupts + are enabled */ #ifdef SMP cmpl $0,_switchtime diff --git a/sys/i386/i386/exception.s b/sys/i386/i386/exception.s index a36375ac6b15..b891c3334bbb 100644 --- a/sys/i386/i386/exception.s +++ b/sys/i386/i386/exception.s @@ -304,6 +304,9 @@ IDTVEC(int0x80_syscall) ENTRY(fork_trampoline) MTX_EXIT(_sched_lock, %ecx) + sti /* XXX: we need this for kernel threads + created very early before interrupts + are enabled */ #ifdef SMP cmpl $0,_switchtime