summaryrefslogtreecommitdiff
path: root/recipes/initscripts/files/arm/alignment.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/initscripts/files/arm/alignment.sh')
-rw-r--r--recipes/initscripts/files/arm/alignment.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes/initscripts/files/arm/alignment.sh b/recipes/initscripts/files/arm/alignment.sh
new file mode 100644
index 0000000000..32a9eaace2
--- /dev/null
+++ b/recipes/initscripts/files/arm/alignment.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ -e /proc/cpu/alignment ] && ! [ $(uname -m) = "armv7l" ]; then
+ echo "3" > /proc/cpu/alignment
+fi
+