]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/initscripts/initscripts-1.0/openslug/alignment.sh
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / initscripts / initscripts-1.0 / openslug / alignment.sh
1 #!/bin/sh
2 #
3 # How to handle alignment faults on the ARM
4 #
5 # 0 - ignore, the value will probably be rotated
6 # 1 - warn, a log message will be output
7 # 2 - fixup, the kernel will do an expensive aligned read
8 # 3 - fixup+warn
9 # 4 - signal, the process will get an illegal instruction fault
10 # 5 - signal+warn
11 # 6 - invalid (has no effect)
12 # 7 - invalid (has no effect)
13 #
14 # Set ALIGN in /etc/default/rcS to override (do not edit this
15 # file!)  Set ALIGN to empty to avoid changing the kernel
16 # default (currently '0').
17 ALIGN=1
18 . /etc/default/rcS
19 test -e /proc/cpu/alignment -a -n "$ALIGN" -a "$ALIGN" -ge 0 -a "$ALIGN" -lt 6 &&
20         echo "$ALIGN" >/proc/cpu/alignment