Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178276608
D62379.1796403280.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
518 B
Referenced Files
None
Subscribers
None
D62379.1796403280.diff
View Options
diff --git a/sys/powerpc/powerpc/ptrace_machdep.c b/sys/powerpc/powerpc/ptrace_machdep.c
--- a/sys/powerpc/powerpc/ptrace_machdep.c
+++ b/sys/powerpc/powerpc/ptrace_machdep.c
@@ -101,7 +101,10 @@
break;
error = copyin(addr, &vsr, sizeof(vsr));
if (error == 0) {
- pcb->pcb_flags |= PCB_FPREGS;
+ if ((pcb->pcb_flags & PCB_FPREGS) == 0) {
+ memset(&pcb->pcb_fpu, 0, sizeof(pcb->pcb_fpu));
+ pcb->pcb_flags |= PCB_FPREGS;
+ }
/*
* Doubleword 0 of VSR0-VSR31 overlap with FPR0-FPR31 and
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 4, 4:54 PM (3 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42210462
Default Alt Text
D62379.1796403280.diff (518 B)
Attached To
Mode
D62379: powerpc: zero the FPU save area in PT_SETVSRREGS when it was not valid
Attached
Detach File
Event Timeline