diff options
author | Rod Whitby <rod@whitby.id.au> | 2006-01-07 08:58:44 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-01-07 08:58:44 +0000 |
commit | 8fb6b2d3d410ad2badf0c99ed7a66b698aafaa17 (patch) | |
tree | 8a700d795bdf33061b8bccc353fe0aaffa044036 /packages/initscripts/initscripts-1.0/slugos/alignment.sh | |
parent | 0b67482ddc4fe571d16fa094627abb447b9a8edb (diff) |
slugos: Major rename of common SlugOS files and directories from openslug to slugos.
Diffstat (limited to 'packages/initscripts/initscripts-1.0/slugos/alignment.sh')
-rw-r--r-- | packages/initscripts/initscripts-1.0/slugos/alignment.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/initscripts/initscripts-1.0/slugos/alignment.sh b/packages/initscripts/initscripts-1.0/slugos/alignment.sh new file mode 100644 index 0000000000..bf193cb01c --- /dev/null +++ b/packages/initscripts/initscripts-1.0/slugos/alignment.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# +# How to handle alignment faults on the ARM +# +# 0 - ignore, the value will probably be rotated +# 1 - warn, a log message will be output +# 2 - fixup, the kernel will do an expensive aligned read +# 3 - fixup+warn +# 4 - signal, the process will get an illegal instruction fault +# 5 - signal+warn +# 6 - invalid (has no effect) +# 7 - invalid (has no effect) +# +# Set ALIGN in /etc/default/rcS to override (do not edit this +# file!) Set ALIGN to empty to avoid changing the kernel +# default (currently '0'). +ALIGN=1 +. /etc/default/rcS +test -e /proc/cpu/alignment -a -n "$ALIGN" -a "$ALIGN" -ge 0 -a "$ALIGN" -lt 6 && + echo "$ALIGN" >/proc/cpu/alignment |