diff options
author | jhb <jhb@FreeBSD.org> | 2001-02-10 02:20:34 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-02-10 02:20:34 +0000 |
commit | a9c84e00da6824d43126b1e221e6e6e95cc276c8 (patch) | |
tree | 2ffe447aaa792aff3416e8c400ea31e67ab643b7 /sys/powerpc | |
parent | efcbded13731a03d5149d347fa46611d5ff0ffff (diff) | |
download | FreeBSD-src-a9c84e00da6824d43126b1e221e6e6e95cc276c8.zip FreeBSD-src-a9c84e00da6824d43126b1e221e6e6e95cc276c8.tar.gz |
- Make astpending and need_resched process attributes rather than CPU
attributes. This is needed for AST's to be properly posted in a preemptive
kernel. They are backed by two new flags in p_sflag: PS_ASTPENDING and
PS_NEEDRESCHED. They are still accesssed by their old macros:
aston(), astoff(), etc. For completeness, an astpending() macro has been
added to check for a pending AST, and clear_resched() has been added to
clear need_resched().
- Rename syscall2() on the x86 back to syscall() to be consistent with
other architectures.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/include/globaldata.h | 1 | ||||
-rw-r--r-- | sys/powerpc/include/pcpu.h | 1 | ||||
-rw-r--r-- | sys/powerpc/powerpc/genassym.c | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/sys/powerpc/include/globaldata.h b/sys/powerpc/include/globaldata.h index 84dbf34..8e6cfbe 100644 --- a/sys/powerpc/include/globaldata.h +++ b/sys/powerpc/include/globaldata.h @@ -57,7 +57,6 @@ struct globaldata { u_int32_t gd_next_asn; /* next ASN to allocate */ u_int32_t gd_current_asngen; /* ASN rollover check */ - u_int gd_astpending; SLIST_ENTRY(globaldata) gd_allcpu; int gd_witness_spin_check; #ifdef KTR_PERCPU diff --git a/sys/powerpc/include/pcpu.h b/sys/powerpc/include/pcpu.h index 84dbf34..8e6cfbe 100644 --- a/sys/powerpc/include/pcpu.h +++ b/sys/powerpc/include/pcpu.h @@ -57,7 +57,6 @@ struct globaldata { u_int32_t gd_next_asn; /* next ASN to allocate */ u_int32_t gd_current_asngen; /* ASN rollover check */ - u_int gd_astpending; SLIST_ENTRY(globaldata) gd_allcpu; int gd_witness_spin_check; #ifdef KTR_PERCPU diff --git a/sys/powerpc/powerpc/genassym.c b/sys/powerpc/powerpc/genassym.c index 10bac57..1417c90 100644 --- a/sys/powerpc/powerpc/genassym.c +++ b/sys/powerpc/powerpc/genassym.c @@ -73,7 +73,6 @@ ASSYM(GD_CURPCB, offsetof(struct globaldata, gd_curpcb)); ASSYM(GD_SWITCHTIME, offsetof(struct globaldata, gd_switchtime)); ASSYM(GD_CPUID, offsetof(struct globaldata, gd_cpuid)); ASSYM(GD_IDLEPCBPHYS, offsetof(struct globaldata, gd_idlepcbphys)); -ASSYM(GD_ASTPENDING, offsetof(struct globaldata, gd_astpending)); ASSYM(MTX_LOCK, offsetof(struct mtx, mtx_lock)); ASSYM(MTX_RECURSE, offsetof(struct mtx, mtx_recurse)); |