Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include/oea make sure struct bat is aligned...



details:   https://anonhg.NetBSD.org/src/rev/9fcfd205a954
branches:  trunk
changeset: 330358:9fcfd205a954
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jul 06 08:06:03 2014 +0000

description:
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 makoto%ki.nu@localhost and kiyohara@netbsd.

diffstat:

 sys/arch/powerpc/include/oea/bat.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7821403174a0 -r 9fcfd205a954 sys/arch/powerpc/include/oea/bat.h
--- a/sys/arch/powerpc/include/oea/bat.h        Sun Jul 06 07:41:41 2014 +0000
+++ b/sys/arch/powerpc/include/oea/bat.h        Sun Jul 06 08:06:03 2014 +0000
@@ -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): */



Home | Main Index | Thread Index | Old Index