summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2003-06-15 00:31:24 +0000
committerdavidxu <davidxu@FreeBSD.org>2003-06-15 00:31:24 +0000
commitabb4420bbe55ce526dd8d7eb8ac3e1b33969d3fa (patch)
treef1ad1d6af931a255911ca3bbb68ac9677e8e30c0 /sys/amd64
parent11be88d0438fcd4af13ed8006b4e293451dc780c (diff)
downloadFreeBSD-src-abb4420bbe55ce526dd8d7eb8ac3e1b33969d3fa.zip
FreeBSD-src-abb4420bbe55ce526dd8d7eb8ac3e1b33969d3fa.tar.gz
Rename P_THREADED to P_SA. P_SA means a process is using scheduler
activations.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c2
-rw-r--r--sys/amd64/amd64/trap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 3e26cfa..8a3226b 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -2979,7 +2979,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/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index c4e7f16..e16f0ec 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -673,7 +673,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_rsp + sizeof(register_t);
code = frame.tf_rax;
OpenPOWER on IntegriCloud