Remove single threading detecting code, these code really should be

replaced by thread_user_enter(), but current we don't want to enable
this in trap.
This commit is contained in:
David Xu 2003-04-22 03:17:41 +00:00
parent 85b2d114c0
commit 5b70587b8a
5 changed files with 0 additions and 45 deletions

View File

@ -298,13 +298,6 @@ trap(a0, a1, a2, entry, framep)
td->td_frame = framep;
if (td->td_ucred != p->p_ucred)
cred_update_thread(td);
PROC_LOCK(p);
if ((p->p_flag & P_WEXIT) && (p->p_singlethread != td)) {
mtx_lock_spin(&sched_lock);
thread_exit();
/* NOTREACHED */
}
PROC_UNLOCK(p);
} else {
sticks = 0; /* XXX bogus -Wuninitialized warning */
KASSERT(cold || td->td_ucred != NULL,

View File

@ -268,18 +268,6 @@ trap(frame)
if (td->td_ucred != p->p_ucred)
cred_update_thread(td);
/*
* First check that we shouldn't just abort.
* But check if we are the single thread first!
*/
PROC_LOCK(p);
if ((p->p_flag & P_WEXIT) && (p->p_singlethread != td)) {
mtx_lock_spin(&sched_lock);
thread_exit();
/* NOTREACHED */
}
PROC_UNLOCK(p);
switch (type) {
case T_PRIVINFLT: /* privileged instruction fault */
ucode = type;

View File

@ -268,18 +268,6 @@ trap(frame)
if (td->td_ucred != p->p_ucred)
cred_update_thread(td);
/*
* First check that we shouldn't just abort.
* But check if we are the single thread first!
*/
PROC_LOCK(p);
if ((p->p_flag & P_WEXIT) && (p->p_singlethread != td)) {
mtx_lock_spin(&sched_lock);
thread_exit();
/* NOTREACHED */
}
PROC_UNLOCK(p);
switch (type) {
case T_PRIVINFLT: /* privileged instruction fault */
ucode = type;

View File

@ -334,13 +334,6 @@ trap(int vector, int imm, struct trapframe *framep)
td->td_frame = framep;
if (td->td_ucred != p->p_ucred)
cred_update_thread(td);
PROC_LOCK(p);
if ((p->p_flag & P_WEXIT) && (p->p_singlethread != td)) {
mtx_lock_spin(&sched_lock);
thread_exit();
/* NOTREACHED */
}
PROC_UNLOCK(p);
} else {
sticks = 0; /* XXX bogus -Wuninitialized warning */
KASSERT(cold || td->td_ucred != NULL,

View File

@ -245,13 +245,6 @@ trap(struct trapframe *tf)
td->td_frame = tf;
if (td->td_ucred != p->p_ucred)
cred_update_thread(td);
PROC_LOCK(p);
if ((p->p_flag & P_WEXIT) && (p->p_singlethread != td)) {
mtx_lock_spin(&sched_lock);
thread_exit();
/* NOTREACHED */
}
PROC_UNLOCK(p);
switch (tf->tf_type) {
case T_DATA_MISS: