3 # How to handle alignment faults on the ARM
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
9 # 4 - signal, the process will get an illegal instruction fault
11 # 6 - invalid (has no effect)
12 # 7 - invalid (has no effect)
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').
19 test -e /proc/cpu/alignment -a -n "$ALIGN" -a "$ALIGN" -ge 0 -a "$ALIGN" -lt 6 &&
20 echo "$ALIGN" >/proc/cpu/alignment