From d27612e2acc3c1a3c373de4b3d4379fdd0411fd0 Mon Sep 17 00:00:00 2001 From: mortimer Date: Fri, 29 Nov 2019 22:34:10 +0000 Subject: Fix size of reserved bytes section in xsave header. ok guenther@ kettenis@ --- sys/arch/amd64/include/fpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/amd64/include/fpu.h b/sys/arch/amd64/include/fpu.h index 017a0e9f080..7ed0a73b619 100644 --- a/sys/arch/amd64/include/fpu.h +++ b/sys/arch/amd64/include/fpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu.h,v 1.16 2018/10/07 22:43:06 guenther Exp $ */ +/* $OpenBSD: fpu.h,v 1.17 2019/11/29 22:34:09 mortimer Exp $ */ /* $NetBSD: fpu.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $ */ #ifndef _MACHINE_FPU_H_ @@ -32,7 +32,7 @@ struct fxsave64 { struct xstate_hdr { uint64_t xstate_bv; uint64_t xstate_xcomp_bv; - uint8_t xstate_rsrv0[0]; + uint8_t xstate_rsrv0[8]; uint8_t xstate_rsrv[40]; } __packed; -- cgit v1.2.3