From owner-svn-src-head@FreeBSD.ORG Fri Apr 3 10:56:43 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 35BF61F2; Fri, 3 Apr 2015 10:56:43 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 20C88816; Fri, 3 Apr 2015 10:56:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t33Aug7Q085733; Fri, 3 Apr 2015 10:56:42 GMT (envelope-from andrew@FreeBSD.org) Received: (from andrew@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t33AugHN085732; Fri, 3 Apr 2015 10:56:42 GMT (envelope-from andrew@FreeBSD.org) Message-Id: <201504031056.t33AugHN085732@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: andrew set sender to andrew@FreeBSD.org using -f From: Andrew Turner Date: Fri, 3 Apr 2015 10:56:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281017 - head/sys/arm64/include X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2015 10:56:43 -0000 Author: andrew Date: Fri Apr 3 10:56:42 2015 New Revision: 281017 URL: https://svnweb.freebsd.org/changeset/base/281017 Log: Add space for future expansion [1]. While here clean up a little, spsr is only 32-bits, and mark the holes in the struct with a pad member. Suggested by: kib [1] Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/include/ucontext.h Modified: head/sys/arm64/include/ucontext.h ============================================================================== --- head/sys/arm64/include/ucontext.h Fri Apr 3 10:20:59 2015 (r281016) +++ head/sys/arm64/include/ucontext.h Fri Apr 3 10:56:42 2015 (r281017) @@ -38,7 +38,8 @@ struct gpregs { unsigned long long gp_lr; unsigned long long gp_sp; unsigned long long gp_elr; - unsigned long long gp_spsr; + uint32_t gp_spsr; + u_int gp_pad; }; struct fpregs { @@ -46,13 +47,16 @@ struct fpregs { uint32_t fp_sr; uint32_t fp_cr; u_int fp_flags; + u_int fp_pad; }; struct __mcontext { struct gpregs mc_gpregs; struct fpregs mc_fpregs; u_int mc_flags; -#define _MC_FP_VALID 0x1 /* Set when mc_fpregs has valid data */ +#define _MC_FP_VALID 0x1 /* Set when mc_fpregs has valid data */ + u_int mc_pad; /* Padding */ + uint64_t mc_spare[8]; /* Space for expansion, set to zero */ }; typedef struct __mcontext mcontext_t;