diff options
author | marcel <marcel@FreeBSD.org> | 2003-11-09 20:31:04 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-11-09 20:31:04 +0000 |
commit | 21340f30b3b095c29e40dbb7a9789b599a246f7e (patch) | |
tree | d88a1cc1b286d672e6999651ad44bf13ca883e02 /sys/kern | |
parent | 87bc402cf2b4799b9d90bb4c6f45d841e78d8881 (diff) | |
download | FreeBSD-src-21340f30b3b095c29e40dbb7a9789b599a246f7e.zip FreeBSD-src-21340f30b3b095c29e40dbb7a9789b599a246f7e.tar.gz |
Change the clear_ret argument of get_mcontext() to be a flags argument.
Since all callers either passed 0 or 1 for clear_ret, define bit 0 in
the flags for use as clear_ret. Reserve bits 1, 2 and 3 for use by MI
code for possible (but unlikely) future use. The remaining bits are for
use by MD code.
This change is triggered by a need on ia64 to have another knob for
get_mcontext().
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_context.c b/sys/kern/kern_context.c index ca3e2b1..300b1f4 100644 --- a/sys/kern/kern_context.c +++ b/sys/kern/kern_context.c @@ -70,7 +70,7 @@ getcontext(struct thread *td, struct getcontext_args *uap) if (uap->ucp == NULL) ret = EINVAL; else { - get_mcontext(td, &uc.uc_mcontext, 1); + get_mcontext(td, &uc.uc_mcontext, GET_MC_CLEAR_RET); PROC_LOCK(td->td_proc); uc.uc_sigmask = td->td_sigmask; PROC_UNLOCK(td->td_proc); @@ -114,7 +114,7 @@ swapcontext(struct thread *td, struct swapcontext_args *uap) if (uap->oucp == NULL || uap->ucp == NULL) ret = EINVAL; else { - get_mcontext(td, &uc.uc_mcontext, 1); + get_mcontext(td, &uc.uc_mcontext, GET_MC_CLEAR_RET); PROC_LOCK(td->td_proc); uc.uc_sigmask = td->td_sigmask; PROC_UNLOCK(td->td_proc); |