svn commit: r257231 - head/sys/arm/include
Olivier Houchard
cognet at FreeBSD.org
Sun Oct 27 22:15:51 UTC 2013
Author: cognet
Date: Sun Oct 27 22:15:50 2013
New Revision: 257231
URL: http://svnweb.freebsd.org/changeset/base/257231
Log:
Make sure the PCB is aligned on 8 bytes, we may use ldrd/strd to access it,
which may have strong alignment requirements.
Modified:
head/sys/arm/include/pcb.h
Modified: head/sys/arm/include/pcb.h
==============================================================================
--- head/sys/arm/include/pcb.h Sun Oct 27 22:05:10 2013 (r257230)
+++ head/sys/arm/include/pcb.h Sun Oct 27 22:15:50 2013 (r257231)
@@ -81,7 +81,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.
More information about the svn-src-all
mailing list