Date: Fri, 3 Apr 2015 10:56:42 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281017 - head/sys/arm64/include Message-ID: <201504031056.t33AugHN085732@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504031056.t33AugHN085732>