diff options
author | kib <kib@FreeBSD.org> | 2010-11-26 14:50:42 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-11-26 14:50:42 +0000 |
commit | 60c89c994a97c0fb5628378c9b8b98b4b6f96d32 (patch) | |
tree | b2b70b68cc97d1e8a719368ec7e8475bd9afc7c0 /sys/i386/include/npx.h | |
parent | b2984c404f1844039344b6aa018d21ed4ee9d388 (diff) | |
download | FreeBSD-src-60c89c994a97c0fb5628378c9b8b98b4b6f96d32.zip FreeBSD-src-60c89c994a97c0fb5628378c9b8b98b4b6f96d32.tar.gz |
Remove npxgetregs(), npxsetregs(), fpugetregs() and fpusetregs()
functions, they are unused. Remove 'user' from npxgetuserregs()
etc. names.
For {npx,fpu}{get,set}regs(), always use pcb->pcb_user_save for FPU
context storage. This eliminates the need for ugly copying with
overwrite of the newly added and reserved fields in ucontext on i386
to satisfy alignment requirements for fpusave() and fpurstor().
pc98 version was copied from i386.
Suggested and reviewed by: bde
Tested by: pho (i386 and amd64)
MFC after: 1 week
Diffstat (limited to 'sys/i386/include/npx.h')
-rw-r--r-- | sys/i386/include/npx.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/i386/include/npx.h b/sys/i386/include/npx.h index 71073a6..6b56bb4 100644 --- a/sys/i386/include/npx.h +++ b/sys/i386/include/npx.h @@ -151,13 +151,12 @@ int npxdna(void); void npxdrop(void); void npxexit(struct thread *td); int npxformat(void); -int npxgetregs(struct thread *td, union savefpu *addr); -int npxgetuserregs(struct thread *td, union savefpu *addr); +int npxgetregs(struct thread *td); void npxinit(void); void npxsave(union savefpu *addr); void npxsetregs(struct thread *td, union savefpu *addr); -void npxsetuserregs(struct thread *td, union savefpu *addr); int npxtrap(void); +void npxuserinited(struct thread *); int fpu_kern_enter(struct thread *td, struct fpu_kern_ctx *ctx, u_int flags); int fpu_kern_leave(struct thread *td, struct fpu_kern_ctx *ctx); |