ARM: domains: get rid of manager mode for user domain
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 21 Aug 2015 08:30:16 +0000 (09:30 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 21 Aug 2015 12:55:52 +0000 (13:55 +0100)
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>
arch/arm/include/asm/domain.h
arch/arm/kernel/traps.c

index 4218f88e8f7e0cae1b3b015a27b8900829f2aa15..08b601e69ddce08c44e5ea08e030c211a21f0c1b 100644 (file)
@@ -59,7 +59,7 @@
 #define domain_val(dom,type)   ((type) << (2 * (dom)))
 
 #define DACR_INIT \
-       (domain_val(DOMAIN_USER, DOMAIN_MANAGER) | \
+       (domain_val(DOMAIN_USER, DOMAIN_CLIENT) | \
         domain_val(DOMAIN_KERNEL, DOMAIN_MANAGER) | \
         domain_val(DOMAIN_TABLE, DOMAIN_MANAGER) | \
         domain_val(DOMAIN_IO, DOMAIN_CLIENT))
index d358226236f2951e3b09cbc629799c963884ca49..969f9d9e665f4d49b2951ed65cfde9c279e1aa55 100644 (file)
@@ -870,7 +870,6 @@ void __init early_trap_init(void *vectors_base)
        kuser_init(vectors_base);
 
        flush_icache_range(vectors, vectors + PAGE_SIZE * 2);
-       modify_domain(DOMAIN_USER, DOMAIN_CLIENT);
 #else /* ifndef CONFIG_CPU_V7M */
        /*
         * on V7-M there is no need to copy the vector table to a dedicated