Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: domains: get rid of manager mode for user domain

Since we switched to early trap initialisation in 94e5a85b3be0
("ARM: earlier initialization of vectors page") we haven't been writing
directly to the vectors page, and so there's no need for this domain
to be in manager mode. Switch it to client mode.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

+1 -2
+1 -1
arch/arm/include/asm/domain.h
··· 59 59 #define domain_val(dom,type) ((type) << (2 * (dom))) 60 60 61 61 #define DACR_INIT \ 62 - (domain_val(DOMAIN_USER, DOMAIN_MANAGER) | \ 62 + (domain_val(DOMAIN_USER, DOMAIN_CLIENT) | \ 63 63 domain_val(DOMAIN_KERNEL, DOMAIN_MANAGER) | \ 64 64 domain_val(DOMAIN_TABLE, DOMAIN_MANAGER) | \ 65 65 domain_val(DOMAIN_IO, DOMAIN_CLIENT))
-1
arch/arm/kernel/traps.c
··· 870 870 kuser_init(vectors_base); 871 871 872 872 flush_icache_range(vectors, vectors + PAGE_SIZE * 2); 873 - modify_domain(DOMAIN_USER, DOMAIN_CLIENT); 874 873 #else /* ifndef CONFIG_CPU_V7M */ 875 874 /* 876 875 * on V7-M there is no need to copy the vector table to a dedicated