Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c2aed5b authored by Russell King's avatar Russell King
Browse files

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



Since we switched to early trap initialisation in 94e5a85b
("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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 0171356a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))
+0 −1
Original line number Diff line number Diff line
@@ -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