svn commit: r281017 - head/sys/arm64/include

Andrew Turner andrew at FreeBSD.org
Fri Apr 3 10:56:43 UTC 2015


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;


More information about the svn-src-all mailing list