Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
0171356a
Commit
0171356a
authored
Aug 21, 2015
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: domains: move initial domain setting value to asm/domains.h
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
8e798706
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
arch/arm/include/asm/domain.h
arch/arm/include/asm/domain.h
+6
-0
arch/arm/kernel/head.S
arch/arm/kernel/head.S
+1
-4
No files found.
arch/arm/include/asm/domain.h
View file @
0171356a
...
@@ -58,6 +58,12 @@
...
@@ -58,6 +58,12 @@
#define domain_mask(dom) ((3) << (2 * (dom)))
#define domain_mask(dom) ((3) << (2 * (dom)))
#define domain_val(dom,type) ((type) << (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__
#ifndef __ASSEMBLY__
static
inline
unsigned
int
get_domain
(
void
)
static
inline
unsigned
int
get_domain
(
void
)
...
...
arch/arm/kernel/head.S
View file @
0171356a
...
@@ -461,10 +461,7 @@ __enable_mmu:
...
@@ -461,10 +461,7 @@ __enable_mmu:
#ifdef CONFIG_ARM_LPAE
#ifdef CONFIG_ARM_LPAE
mcrr
p15
,
0
,
r4
,
r5
,
c2
@
load
TTBR0
mcrr
p15
,
0
,
r4
,
r5
,
c2
@
load
TTBR0
#else
#else
mov
r5
,
#(
domain_val
(
DOMAIN_USER
,
DOMAIN_MANAGER
)
|
\
mov
r5
,
#
DACR_INIT
domain_val
(
DOMAIN_KERNEL
,
DOMAIN_MANAGER
)
|
\
domain_val
(
DOMAIN_TABLE
,
DOMAIN_MANAGER
)
|
\
domain_val
(
DOMAIN_IO
,
DOMAIN_CLIENT
))
mcr
p15
,
0
,
r5
,
c3
,
c0
,
0
@
load
domain
access
register
mcr
p15
,
0
,
r5
,
c3
,
c0
,
0
@
load
domain
access
register
mcr
p15
,
0
,
r4
,
c2
,
c0
,
0
@
load
page
table
pointer
mcr
p15
,
0
,
r4
,
c2
,
c0
,
0
@
load
page
table
pointer
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment