ARM: implement CONFIG_STRICT_DEVMEM by disabling access to RAM via /dev/mem
authorNicolas Pitre <nico@fluxnic.net>
Wed, 22 Sep 2010 22:34:36 +0000 (18:34 -0400)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Sat, 2 Oct 2010 02:31:34 +0000 (22:31 -0400)
commit087aaffcdf9c91667c93923fbc05fa8fb6bc7d3a
treeec94d9fd07baa4802ff0a3a2811ef3c3e1c7f3f3
parent7c63984b86f96c71c541132c74c4b56fe2a13e1a
ARM: implement CONFIG_STRICT_DEVMEM by disabling access to RAM via /dev/mem

There are very few legitimate use cases, if any, for directly accessing
system RAM through /dev/mem.  So let's mimic what they do on x86 and
forbid it when CONFIG_STRICT_DEVMEM is turned on.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/Kconfig.debug
arch/arm/include/asm/io.h
arch/arm/mm/mmap.c