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/amd64/include | |
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/amd64/include')
-rw-r--r-- | sys/amd64/include/fpu.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/amd64/include/fpu.h b/sys/amd64/include/fpu.h index ca0ac8f..50b3819 100644 --- a/sys/amd64/include/fpu.h +++ b/sys/amd64/include/fpu.h @@ -112,12 +112,11 @@ void fpudna(void); void fpudrop(void); void fpuexit(struct thread *td); int fpuformat(void); -int fpugetregs(struct thread *td, struct savefpu *addr); -int fpugetuserregs(struct thread *td, struct savefpu *addr); +int fpugetregs(struct thread *td); void fpuinit(void); void fpusetregs(struct thread *td, struct savefpu *addr); -void fpusetuserregs(struct thread *td, struct savefpu *addr); int fputrap(void); +void fpuuserinited(struct thread *td); 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); |