Always enable interrupts during fork_trampoline() after releasing the
sched_lock. This is needed for kernel threads that are created before interrupts are enabled. kthreads created by kld's that are created at SI_SUB_KLD such as the random kthread. Tested by: phk
This commit is contained in:
parent
326df993d7
commit
4ae465d099
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user