From cee8757f921d5b74acbc29b37a1842041b27fb00 Mon Sep 17 00:00:00 2001 From: Greg Hackmann Date: Mon, 26 Jan 2015 10:40:29 -0800 Subject: 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 --- rootdir/init.rc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rootdir/init.rc') diff --git a/rootdir/init.rc b/rootdir/init.rc index 2ae74098f..bf70708e7 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 -- cgit v1.2.3