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:
John Baldwin 2000-11-14 23:01:24 +00:00
parent 326df993d7
commit 4ae465d099
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68737
3 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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