Module Name: src
Committed By: mrg
Date: Sun Jul 6 08:06:03 UTC 2014
Modified Files:
src/sys/arch/powerpc/include/oea: bat.h
Log Message:
make sure struct bat is aligned to 8 bytes as we shift them 3 bits.
fixes PReP lossage as reported on port-powerpc and port-prep.
thanks to [email protected] and kiyohara@netbsd.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/powerpc/include/oea/bat.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/include/oea/bat.h
diff -u src/sys/arch/powerpc/include/oea/bat.h:1.17 src/sys/arch/powerpc/include/oea/bat.h:1.18
--- src/sys/arch/powerpc/include/oea/bat.h:1.17 Wed Feb 15 04:33:19 2012
+++ src/sys/arch/powerpc/include/oea/bat.h Sun Jul 6 08:06:03 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: bat.h,v 1.17 2012/02/15 04:33:19 macallan Exp $ */
+/* $NetBSD: bat.h,v 1.18 2014/07/06 08:06:03 mrg Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
struct bat {
register_t batu;
register_t batl;
-};
+} __aligned(8);
#endif
/* Lower BAT bits (all but PowerPC 601): */