Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140033072
D37994.id115250.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
918 B
Referenced Files
None
Subscribers
None
D37994.id115250.diff
View Options
diff --git a/sys/arm64/arm64/exec_machdep.c b/sys/arm64/arm64/exec_machdep.c
--- a/sys/arm64/arm64/exec_machdep.c
+++ b/sys/arm64/arm64/exec_machdep.c
@@ -153,16 +153,17 @@
*/
if (td == curthread)
vfp_save_state(td, pcb);
+ }
- KASSERT(pcb->pcb_fpusaved == &pcb->pcb_fpustate,
- ("Called fill_fpregs while the kernel is using the VFP"));
- memcpy(regs->fp_q, pcb->pcb_fpustate.vfp_regs,
- sizeof(regs->fp_q));
- regs->fp_cr = pcb->pcb_fpustate.vfp_fpcr;
- regs->fp_sr = pcb->pcb_fpustate.vfp_fpsr;
- } else
+ KASSERT(pcb->pcb_fpusaved == &pcb->pcb_fpustate,
+ ("Called fill_fpregs while the kernel is using the VFP"));
+ memcpy(regs->fp_q, pcb->pcb_fpustate.vfp_regs,
+ sizeof(regs->fp_q));
+ regs->fp_cr = pcb->pcb_fpustate.vfp_fpcr;
+ regs->fp_sr = pcb->pcb_fpustate.vfp_fpsr;
+#else
+ memset(regs, 0, sizeof(*regs));
#endif
- memset(regs, 0, sizeof(*regs));
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 20, 8:08 AM (18 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27093702
Default Alt Text
D37994.id115250.diff (918 B)
Attached To
Mode
D37994: Always read the VFP regs in the arm64 fill_fpregs
Attached
Detach File
Event Timeline
Log In to Comment