FreeBSD Bugzilla – Attachment 35467 Details for
Bug 57250
[amd64] [patch] Broken PTRACE_GETFPREGS and PTRACE_SETFPREGS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.04 KB, created by
Mark Kettenis
on 2003-09-26 15:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Mark Kettenis
Created:
2003-09-26 15:20:01 UTC
Size:
1.04 KB
patch
obsolete
>--- src/sys/amd64/amd64/machdep.c.orig Tue Sep 9 21:32:09 2003 >+++ src/sys/amd64/amd64/machdep.c Sat Sep 20 11:47:19 2003 >@@ -1413,8 +1413,10 @@ set_fpregs_xmm(struct fpreg *fpregs, str > int > fill_fpregs(struct thread *td, struct fpreg *fpregs) > { >+ struct savefpu sv_xmm; > >- fill_fpregs_xmm(&td->td_pcb->pcb_save, fpregs); >+ npxgetregs(td, &sv_xmm); >+ fill_fpregs_xmm(&sv_xmm, fpregs); > return (0); > } > >@@ -1422,8 +1424,10 @@ fill_fpregs(struct thread *td, struct fp > int > set_fpregs(struct thread *td, struct fpreg *fpregs) > { >+ struct savefpu sv_xmm; > >- set_fpregs_xmm(fpregs, &td->td_pcb->pcb_save); >+ set_fpregs_xmm(fpregs, &sv_xmm); >+ npxsetregs(td, &sv_xmm); > return (0); > } > >--- src/sys/amd64/isa/npx.c.orig Fri Jul 25 23:18:52 2003 >+++ src/sys/amd64/isa/npx.c Sat Sep 20 11:47:19 2003 >@@ -646,7 +646,7 @@ npxsetregs(td, addr) > intr_restore(s); > bcopy(addr, &td->td_pcb->pcb_save, sizeof(*addr)); > } >- curthread->td_pcb->pcb_flags |= PCB_NPXINITDONE; >+ td->td_pcb->pcb_flags |= PCB_NPXINITDONE; > } > > static device_method_t npx_methods[] = {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 57250
: 35467