summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2015-01-26 10:40:29 -0800
committerGreg Hackmann <ghackmann@google.com>2015-02-05 13:38:58 -0800
commitcee8757f921d5b74acbc29b37a1842041b27fb00 (patch)
tree521afb835f9b090870a5081ce7b2081fcec5b910 /rootdir
parentd558530ba90cb6218fe8e255c71a034c3fe1ea58 (diff)
downloadsystem_core-cee8757f921d5b74acbc29b37a1842041b27fb00.zip
system_core-cee8757f921d5b74acbc29b37a1842041b27fb00.tar.gz
system_core-cee8757f921d5b74acbc29b37a1842041b27fb00.tar.bz2
rootdir: enable armv8_deprecated swp hook
The upstream kernel now includes support for emulating legacy AArch32 instructions on ARMv8 devices. By default this framework emulates deprecated instructions but not obsolete instructions. Android requires support for the obsolete SWP and SWPB instructions on all ARM devices, so override this default for the swp emulation hook. Change-Id: I82b9bdb564413ec7c1a101da75a9928aebe1606b Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 2ae7409..bf70708 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -160,6 +160,9 @@ on init
chown system log /sys/fs/pstore/pmsg-ramoops-0
chmod 0440 /sys/fs/pstore/pmsg-ramoops-0
+ # enable armv8_deprecated instruction hooks
+ write /proc/sys/abi/swp 1
+
# Healthd can trigger a full boot from charger mode by signaling this
# property when the power button is held.
on property:sys.boot_from_charger_mode=1