Author: cognet Date: Fri May 18 13:28:02 2018 New Revision: 333791 URL: https://svnweb.freebsd.org/changeset/base/333791
Log: Instead of ignoring the VFP registers, set the dumppcb's pcb_fpusaved field, so that they are saved, as they may be used in the kernel, in the EFI and the crypto code. Reviewed by: andrew Modified: head/sys/arm64/arm64/vfp.c Modified: head/sys/arm64/arm64/vfp.c ============================================================================== --- head/sys/arm64/arm64/vfp.c Fri May 18 13:03:04 2018 (r333790) +++ head/sys/arm64/arm64/vfp.c Fri May 18 13:28:02 2018 (r333791) @@ -172,12 +172,11 @@ vfp_save_state(struct thread *td, struct pcb *pcb) /* * savectx() will be called on panic with dumppcb as an argument, - * dumppcb doesn't have pcb_fpusaved set so don't make any attempt - * to store the VFP registers in it, we probably don't care much - * at that point, anyway. + * dumppcb doesn't have pcb_fpusaved set, so set it to save + * the VFP registers. */ if (pcb->pcb_fpusaved == NULL) - return; + pcb->pcb_fpusaved = &pcb->pcb_fpustate; if (td == NULL) td = curthread; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"