]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: idmap: add identity mapping usage note
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 29 Jul 2014 11:18:34 +0000 (12:18 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 2 Aug 2014 14:20:26 +0000 (15:20 +0100)
Add a note about the usage of the identity mapping; we do not support
accesses outside of the identity map region and kernel image while a
CPU is using the identity map.  This is because the identity mapping
may overwrite vmalloc space, IO mappings, the vectors pages, etc.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/idmap.c

index d7a0ee898d2411eb785fd1213da221d68ede5b99..c447ec70e8687ac1c4c02d00bd5597b66ce8f8dd 100644 (file)
@@ -9,6 +9,11 @@
 #include <asm/sections.h>
 #include <asm/system_info.h>
 
+/*
+ * Note: accesses outside of the kernel image and the identity map area
+ * are not supported on any CPU using the idmap tables as its current
+ * page tables.
+ */
 pgd_t *idmap_pgd;
 phys_addr_t (*arch_virt_to_idmap) (unsigned long x);