summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-08-21 09:23:26 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-08-21 13:55:51 +0100
commit0171356a7708af01ad3224702b7f0aaa5b7a1399 (patch)
tree8a9d5dedde6a56cd9af780c70825a97d6cfbf335 /arch/arm/include/asm
parent8e798706f7e9cd7f096aa194de90269dde83773e (diff)
downloadblackbird-op-linux-0171356a7708af01ad3224702b7f0aaa5b7a1399.tar.gz
blackbird-op-linux-0171356a7708af01ad3224702b7f0aaa5b7a1399.zip
ARM: domains: move initial domain setting value to asm/domains.h
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r--arch/arm/include/asm/domain.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/domain.h b/arch/arm/include/asm/domain.h
index 045b9b453bcd..4218f88e8f7e 100644
--- a/arch/arm/include/asm/domain.h
+++ b/arch/arm/include/asm/domain.h
@@ -58,6 +58,12 @@
#define domain_mask(dom) ((3) << (2 * (dom)))
#define domain_val(dom,type) ((type) << (2 * (dom)))
+#define DACR_INIT \
+ (domain_val(DOMAIN_USER, DOMAIN_MANAGER) | \
+ domain_val(DOMAIN_KERNEL, DOMAIN_MANAGER) | \
+ domain_val(DOMAIN_TABLE, DOMAIN_MANAGER) | \
+ domain_val(DOMAIN_IO, DOMAIN_CLIENT))
+
#ifndef __ASSEMBLY__
static inline unsigned int get_domain(void)
OpenPOWER on IntegriCloud