Since we've been discussing it recently, how does this look?
Attached are:
patch against F13 /etc/rc.sysinit
/etc/sysconfig/alignment
It is the first thing that runs in rc.sysinit. Provided that bash, echo,
uname and grep aren't having alignment issues, it should be OK. And if
those were buggy we'd have much bigger problems.
Comments?
Gordan
--- rc.sysinit.orig 2011-01-10 11:53:11.846625231 +0000
+++ rc.sysinit 2011-01-10 12:00:41.358428301 +0000
@@ -5,6 +5,15 @@
# Taken in part from Miquel van Smoorenburg's bcheckrc.
#
+if (uname -m | grep '^armv[0-9]' > /dev/null); then
+ . /etc/sysconfig/alignment
+ if [ -n "$ALIGNMENT" ]; then
+ if ( echo "$ALIGNMENT" | grep '^[0-5]$' > /dev/null ); then
+ echo $ALIGNMENT > /proc/cpu/alignment
+ fi
+ fi
+fi
+
HOSTNAME=$(/bin/hostname)
set -m
# Default alignment setting for ARM CPUs.
# 0 - ignore unaligned accesses silently (kernel's default policy)
# 1 - warn on unaligned accesses in kernel log
# 2 - fixup unaligned accesses silently
# 3 - fixup+warn on unaligned accesses
# 4 - signal on unaligned accesses (core dump the offending program)
# 5 - signal+warn on unaligned accesses
ALIGNMENT=3
_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm