From a9772d1a0ecb871d533efdec2e525e42bfbd1416 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Fri, 18 May 2018 13:28:02 +0000 Subject: [PATCH] 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 --- sys/arm64/arm64/vfp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/arm64/arm64/vfp.c b/sys/arm64/arm64/vfp.c index b11e799fcdb..983f0e6f7d4 100644 --- a/sys/arm64/arm64/vfp.c +++ b/sys/arm64/arm64/vfp.c @@ -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;