summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2003-02-17 09:55:10 +0000
committerjulian <julian@FreeBSD.org>2003-02-17 09:55:10 +0000
commitaf55753a063a04a847a53c2946cd5fbf413a1e0f (patch)
tree775429b184310789a1eb3bc1be8451f6faf1abf4 /sys/sparc64
parent653bc68f5387baeae2f13b7f346d29659904e188 (diff)
downloadFreeBSD-src-af55753a063a04a847a53c2946cd5fbf413a1e0f.zip
FreeBSD-src-af55753a063a04a847a53c2946cd5fbf413a1e0f.tar.gz
Move a bunch of flags from the KSE to the thread.
I was in two minds as to where to put them in the first case.. I should have listenned to the other mind. Submitted by: parts by davidxu@ Reviewed by: jeff@ mini@
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/exception.S8
-rw-r--r--sys/sparc64/sparc64/genassym.c7
2 files changed, 7 insertions, 8 deletions
diff --git a/sys/sparc64/sparc64/exception.S b/sys/sparc64/sparc64/exception.S
index 5dfb418..5fa41d3 100644
--- a/sys/sparc64/sparc64/exception.S
+++ b/sys/sparc64/sparc64/exception.S
@@ -2316,10 +2316,10 @@ ENTRY(tl0_ret)
*/
wrpr %g0, PIL_TICK, %pil
ldx [PCPU(CURTHREAD)], %l0
- ldx [%l0 + TD_KSE], %l1
- lduw [%l1 + KE_FLAGS], %l2
- and %l2, KEF_ASTPENDING | KEF_NEEDRESCHED, %l2
- brz,a,pt %l2, 1f
+ lduw [%l0 + TD_FLAGS], %l1
+ set TDF_ASTPENDING | TDF_NEEDRESCHED, %l2
+ and %l1, %l2, %l1
+ brz,a,pt %l1, 1f
nop
/*
diff --git a/sys/sparc64/sparc64/genassym.c b/sys/sparc64/sparc64/genassym.c
index a798d90..2032cd8 100644
--- a/sys/sparc64/sparc64/genassym.c
+++ b/sys/sparc64/sparc64/genassym.c
@@ -220,8 +220,8 @@ ASSYM(IV_PRI, offsetof(struct intr_vector, iv_pri));
ASSYM(IV_MAX, IV_MAX);
-ASSYM(KEF_ASTPENDING, KEF_ASTPENDING);
-ASSYM(KEF_NEEDRESCHED, KEF_NEEDRESCHED);
+ASSYM(TDF_ASTPENDING, TDF_ASTPENDING);
+ASSYM(TDF_NEEDRESCHED, TDF_NEEDRESCHED);
ASSYM(MD_UTRAP, offsetof(struct mdproc, md_utrap));
@@ -235,10 +235,9 @@ ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace));
ASSYM(RW_SHIFT, RW_SHIFT);
-ASSYM(KE_FLAGS, offsetof(struct kse, ke_flags));
+ASSYM(TD_FLAGS, offsetof(struct thread, td_flags));
ASSYM(TD_FRAME, offsetof(struct thread, td_frame));
-ASSYM(TD_KSE, offsetof(struct thread, td_kse));
ASSYM(TD_KSTACK, offsetof(struct thread, td_kstack));
ASSYM(TD_PCB, offsetof(struct thread, td_pcb));
ASSYM(TD_PROC, offsetof(struct thread, td_proc));
OpenPOWER on IntegriCloud