diff options
author | deischen <deischen@FreeBSD.org> | 2002-11-16 06:35:53 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2002-11-16 06:35:53 +0000 |
commit | 31ea801074585bde84b74ea76bbedd715ad2f3a4 (patch) | |
tree | 7153d8e405a5cd14ef74512c9e674270132975b7 /sys/alpha/include/cpu.h | |
parent | a858c2cb5c0438dd0886b2672ecba35cc82bf1dc (diff) | |
download | FreeBSD-src-31ea801074585bde84b74ea76bbedd715ad2f3a4.zip FreeBSD-src-31ea801074585bde84b74ea76bbedd715ad2f3a4.tar.gz |
Add getcontext, setcontext, and swapcontext as system calls.
Previously these were libc functions but were requested to
be made into system calls for atomicity and to coalesce what
might be two entrances into the kernel (signal mask setting
and floating point trap) into one.
A few style nits and comments from bde are also included.
Tested on alpha by: gallatin
Diffstat (limited to 'sys/alpha/include/cpu.h')
-rw-r--r-- | sys/alpha/include/cpu.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h index 9d05765..0e39182 100644 --- a/sys/alpha/include/cpu.h +++ b/sys/alpha/include/cpu.h @@ -115,11 +115,11 @@ void XentRestart(void); /* MAGIC */ void XentSys(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */ void XentUna(u_int64_t, u_int64_t, u_int64_t); /* MAGIC */ void alpha_init(u_long, u_long, u_long, u_long, u_long); +void alpha_fpstate_check(struct thread *td); +void alpha_fpstate_drop(struct thread *td); +void alpha_fpstate_save(struct thread *td, int write); +void alpha_fpstate_switch(struct thread *td); int alpha_pa_access(u_long); -void alpha_fpstate_check(struct thread *p); -void alpha_fpstate_save(struct thread *p, int write); -void alpha_fpstate_drop(struct thread *p); -void alpha_fpstate_switch(struct thread *p); int badaddr (void *, size_t); int badaddr_read(void *, size_t, void *); u_int64_t console_restart(u_int64_t, u_int64_t, u_int64_t); |