Date: Fri, 18 May 2018 13:28:02 +0000 (UTC) From: Olivier Houchard <cognet@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333791 - head/sys/arm64/arm64 Message-ID: <201805181328.w4IDS2er067007@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805181328.w4IDS2er067007>