]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: add __arm_iomem_set_ro() to write-protect ioremapped area
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 21 Sep 2021 11:57:22 +0000 (12:57 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 19 Oct 2021 09:30:56 +0000 (10:30 +0100)
commite5d0df86bbf34b0568f99864da85ccdf3d072c56
treef30b5a2086dc1093e185f5877060ab8a1d18730d
parent5e33fbae877b9f9448bf206448b42788b79fe46d
ARM: add __arm_iomem_set_ro() to write-protect ioremapped area

__arm_iomem_set_ro() marks an ioremapped area read-only. This is
intended for use with __arm_ioremap_exec() to allow the kernel to
write some code into e.g. SRAM and then write-protect it so the
kernel doesn't complain about W+X mappings.

Tested-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/io.h
arch/arm/mm/ioremap.c