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/powerpc | |
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/powerpc')
-rw-r--r-- | sys/powerpc/aim/machdep.c | 14 | ||||
-rw-r--r-- | sys/powerpc/powerpc/machdep.c | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c index a14d966..ffb5070 100644 --- a/sys/powerpc/aim/machdep.c +++ b/sys/powerpc/aim/machdep.c @@ -638,6 +638,20 @@ freebsd4_sigreturn(struct thread *td, struct freebsd4_sigreturn_args *uap) } #endif +int +get_mcontext(struct thread *td, mcontext_t *mcp) +{ + + return (ENOSYS); +} + +int +set_mcontext(struct thread *td, const mcontext_t *mcp) +{ + + return (ENOSYS); +} + void cpu_boot(int howto) { diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c index a14d966..ffb5070 100644 --- a/sys/powerpc/powerpc/machdep.c +++ b/sys/powerpc/powerpc/machdep.c @@ -638,6 +638,20 @@ freebsd4_sigreturn(struct thread *td, struct freebsd4_sigreturn_args *uap) } #endif +int +get_mcontext(struct thread *td, mcontext_t *mcp) +{ + + return (ENOSYS); +} + +int +set_mcontext(struct thread *td, const mcontext_t *mcp) +{ + + return (ENOSYS); +} + void cpu_boot(int howto) { |