diff options
author | julian <julian@FreeBSD.org> | 2003-02-17 09:55:10 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2003-02-17 09:55:10 +0000 |
commit | af55753a063a04a847a53c2946cd5fbf413a1e0f (patch) | |
tree | 775429b184310789a1eb3bc1be8451f6faf1abf4 /sys/alpha | |
parent | 653bc68f5387baeae2f13b7f346d29659904e188 (diff) | |
download | FreeBSD-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/alpha')
-rw-r--r-- | sys/alpha/alpha/exception.s | 10 | ||||
-rw-r--r-- | sys/alpha/alpha/genassym.c | 7 |
2 files changed, 7 insertions, 10 deletions
diff --git a/sys/alpha/alpha/exception.s b/sys/alpha/alpha/exception.s index 764d8d0..3359b84 100644 --- a/sys/alpha/alpha/exception.s +++ b/sys/alpha/alpha/exception.s @@ -133,9 +133,8 @@ 2: ldiq a0, ALPHA_PSL_IPL_HIGH /* disable all interrupts */ call_pal PAL_OSF1_swpipl ldq s0, PC_CURTHREAD(pcpup) /* checking for pending asts */ - ldq s1, TD_KSE(s0) /* atomically with returning */ - ldl s1, KE_FLAGS(s1) - ldiq s2, KEF_ASTPENDING | KEF_NEEDRESCHED + ldl s1, TD_FLAGS(s0) + ldiq s2, TDF_ASTPENDING | TDF_NEEDRESCHED and s1, s2 beq s1, 3f ldiq a0, ALPHA_PSL_IPL_0 /* reenable interrupts */ @@ -278,9 +277,8 @@ Ler1: LDGP(pv) /* Handle any AST's or resched's. */ 1: ldiq a0, ALPHA_PSL_IPL_HIGH /* disable all interrupts */ call_pal PAL_OSF1_swpipl - ldq s2, TD_KSE(s0) /* checking for pending asts */ - ldl s2, KE_FLAGS(s2) /* atomically with returning */ - ldiq s3, KEF_ASTPENDING | KEF_NEEDRESCHED + ldl s2, TD_FLAGS(s0) /* atomically with returning */ + ldiq s3, TDF_ASTPENDING | TDF_NEEDRESCHED and s2, s3 beq s2, 2f ldiq a0, ALPHA_PSL_IPL_0 /* reenable interrupts */ diff --git a/sys/alpha/alpha/genassym.c b/sys/alpha/alpha/genassym.c index 55602c9..d967441 100644 --- a/sys/alpha/alpha/genassym.c +++ b/sys/alpha/alpha/genassym.c @@ -78,13 +78,12 @@ ASSYM(MTX_RECURSE, offsetof(struct mtx, mtx_recurse)); ASSYM(MTX_UNOWNED, MTX_UNOWNED); ASSYM(TD_PCB, offsetof(struct thread, td_pcb)); -ASSYM(TD_KSE, offsetof(struct thread, td_kse)); ASSYM(TD_PROC, offsetof(struct thread, td_proc)); -ASSYM(KE_FLAGS, offsetof(struct kse, ke_flags)); +ASSYM(TD_FLAGS, offsetof(struct thread, td_flags)); -ASSYM(KEF_ASTPENDING, KEF_ASTPENDING); -ASSYM(KEF_NEEDRESCHED, KEF_NEEDRESCHED); +ASSYM(TDF_ASTPENDING, TDF_ASTPENDING); +ASSYM(TDF_NEEDRESCHED, TDF_NEEDRESCHED); ASSYM(TD_MD_FLAGS, offsetof(struct thread, td_md.md_flags)); ASSYM(TD_MD_PCBPADDR, offsetof(struct thread, td_md.md_pcbpaddr)); |