diff options
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/pmap.c | 2 | ||||
-rw-r--r-- | sys/i386/i386/sys_machdep.c | 2 | ||||
-rw-r--r-- | sys/i386/i386/trap.c | 2 | ||||
-rw-r--r-- | sys/i386/linux/linux_sysvec.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index c9dc0af..a2401c1 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -3258,7 +3258,7 @@ pmap_activate(struct thread *td) /* XXXKSE this is wrong. * pmap_activate is for the current thread on the current cpu */ - if (p->p_flag & P_THREADED) { + if (p->p_flag & P_SA) { /* Make sure all other cr3 entries are updated. */ /* what if they are running? XXXKSE (maybe abort them) */ FOREACH_THREAD_IN_PROC(p, td) { diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c index fe99f79..2e4cd26 100644 --- a/sys/i386/i386/sys_machdep.c +++ b/sys/i386/i386/sys_machdep.c @@ -135,7 +135,7 @@ i386_extend_pcb(struct thread *td) 0 /* granularity */ }; - if (td->td_proc->p_flag & P_THREADED) + if (td->td_proc->p_flag & P_SA) return (EINVAL); /* XXXKSE */ /* XXXKSE All the code below only works in 1:1 needs changing */ ext = (struct pcb_ext *)kmem_alloc(kernel_map, ctob(IOPAGES+1)); diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index 524bb7e..1f165f2 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -951,7 +951,7 @@ syscall(frame) td->td_frame = &frame; if (td->td_ucred != p->p_ucred) cred_update_thread(td); - if (p->p_flag & P_THREADED) + if (p->p_flag & P_SA) thread_user_enter(p, td); params = (caddr_t)frame.tf_esp + sizeof(int); code = frame.tf_eax; diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index 541b7a9..0e92296 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -236,7 +236,7 @@ elf_linux_fixup(register_t **stack_base, struct image_params *imgp) register_t *pos; KASSERT(curthread->td_proc == imgp->proc && - (curthread->td_proc->p_flag & P_THREADED) == 0, + (curthread->td_proc->p_flag & P_SA) == 0, ("unsafe elf_linux_fixup(), should be curproc")); args = (Elf32_Auxargs *)imgp->auxargs; pos = *stack_base + (imgp->argc + imgp->envc + 2); |