linux/arch/arm/plat-omap
Tony Lindgren eb85a355c3 ARM: OMAP: Fix SRAM W+X mapping
We are still using custom SRAM code for some SoCs and are not marking
the PM code mapped to SRAM as read-only and executable after we're
done. With CONFIG_DEBUG_WX=y, we will get "Found insecure W+X mapping
at address" warning.

Let's fix this issue the same way as commit 728bbe75c8 ("misc: sram:
Introduce support code for protect-exec sram type") is doing for
drivers/misc/sram-exec.c.

On omap3, we need to restore SRAM when returning from off mode after
idle, so init time configuration is not enough.

And as we no longer have users for omap_sram_push_address() we can
make it static while at it.

Note that eventually we should be using sram-exec.c for all SoCs.

Cc: stable@vger.kernel.org	# v4.12+
Cc: Dave Gerlach <d-gerlach@ti.com>
Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2018-03-21 08:16:29 -07:00
..
include/plat ARM: OMAP: Fix SRAM W+X mapping 2018-03-21 08:16:29 -07:00
counter_32k.c ARM, clocksource/drivers: Provide read_boot_clock64() and read_persistent_clock64() and use them 2015-04-03 08:18:23 +02:00
debug-leds.c ARM: OMAP: debug-leds: raw read and write endian fix 2014-05-08 07:09:55 -07:00
dma.c ARM: OMAP: Use kcalloc() in omap_system_dma_probe() 2017-10-11 11:13:15 -07:00
dmtimer.c ARM: OMAP: Fix dmtimer init for omap1 2018-02-22 10:02:49 -08:00
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile ARM: OMAP2+: Remove legacy i2c.c platform init code 2016-11-10 08:53:30 -07:00
sram.c ARM: OMAP: Fix SRAM W+X mapping 2018-03-21 08:16:29 -07:00