ARM: OMAP2+: Fix ppa_zero_params and ppa_por_params for rodata
authorTony Lindgren <tony@atomide.com>
Thu, 14 Jan 2016 20:20:48 +0000 (12:20 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Feb 2016 20:01:20 +0000 (12:01 -0800)
commita6e01f0c81d54678cdd50892462d12b672320e5e
treea8a15998f90daf26dffa6c083af04dc1a0875d04
parent82de5956e9f4102e7b29d6718abaf0d156cdbc2a
ARM: OMAP2+: Fix ppa_zero_params and ppa_por_params for rodata

commit 4da597d16602d14405b71a18d45e1c59f28f0fd2 upstream.

We don't want to write to .text so let's move ppa_zero_params and
ppa_por_params to .data and access them via pointers.

Note that I have not been able to test as we I don't have a HS
omap4 to test with. The code has been changed in similar way as
for omap3 though.

Cc: Kees Cook <keescook@chromium.org>
Cc: Laura Abbott <labbott@redhat.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: Richard Woodruff <r-woodruff2@ti.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Tero Kristo <t-kristo@ti.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Fixes: 1e6b48116a95 ("ARM: mm: allow non-text sections to be
non-executable")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-omap2/sleep44xx.S