Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 May 2014 16:39:48 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r266409 - stable/10/sys/arm/include
Message-ID:  <201405181639.s4IGdmRB023735@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Sun May 18 16:39:47 2014
New Revision: 266409
URL: http://svnweb.freebsd.org/changeset/base/266409

Log:
  MFC 257231:
  
    Make sure the PCB is aligned on 8 bytes, we may use ldrd/strd to access it,
    which may have strong alignment requirements.

Modified:
  stable/10/sys/arm/include/pcb.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/arm/include/pcb.h
==============================================================================
--- stable/10/sys/arm/include/pcb.h	Sun May 18 16:17:13 2014	(r266408)
+++ stable/10/sys/arm/include/pcb.h	Sun May 18 16:39:47 2014	(r266409)
@@ -80,7 +80,11 @@ struct pcb {
 	struct	pcb_arm32 un_32;
 	struct vfp_state pcb_vfpstate;          /* VP/NEON state */
 	u_int pcb_vfpcpu;                       /* VP/NEON last cpu */
-};
+} __aligned(8); /* 
+		 * We need the PCB to be aligned on 8 bytes, as we may
+		 * access it using ldrd/strd, and some CPUs require it
+		 * to by aligned on 8 bytes.
+		 */
 
 /*
  * No additional data for core dumps.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405181639.s4IGdmRB023735>