ARM: OMAP2+: Fix save_secure_ram_context for rodata
authorTony Lindgren <tony@atomide.com>
Thu, 14 Jan 2016 20:20:47 +0000 (12:20 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 22 Jan 2016 16:26:08 +0000 (08:26 -0800)
commita5311d4d13df80bd71a9e47f9ecaf327f478fab1
tree963bb738bdf2dd9f75819fed368fec508e974d0c
parenteeaf9646aca89d097861caa24d9818434e48810e
ARM: OMAP2+: Fix save_secure_ram_context for rodata

We don't want to write to .text and we can move save_secure_ram_context
into .data as it all gets copied into SRAM anyways.

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: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: Tero Kristo <t-kristo@ti.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Cc: stable@vger.kernel.org # v4.0+
Fixes: 1e6b48116a95 ("ARM: mm: allow non-text sections to be
non-executable")
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/sleep34xx.S