Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
787d848a
Commit
787d848a
authored
5 years ago
by
Mark Dykes
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "xlat_tables_v2: add enable_mmu()" into integration
parents
614be75d
f5547735
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/lib/xlat_tables/xlat_mmu_helpers.h
+3
-0
include/lib/xlat_tables/xlat_mmu_helpers.h
lib/xlat_tables_v2/xlat_tables_context.c
+17
-0
lib/xlat_tables_v2/xlat_tables_context.c
with
20 additions
and
0 deletions
+20
-0
include/lib/xlat_tables/xlat_mmu_helpers.h
View file @
787d848a
...
...
@@ -56,6 +56,8 @@
#include <stdint.h>
#include <string.h>
#include <arch_helpers.h>
/*
* Return the values that the MMU configuration registers must contain for the
* specified translation context. `params` must be a pointer to array of size
...
...
@@ -70,6 +72,7 @@ void setup_mmu_cfg(uint64_t *params, unsigned int flags,
void
enable_mmu_el1
(
unsigned
int
flags
);
void
enable_mmu_el2
(
unsigned
int
flags
);
void
enable_mmu_el3
(
unsigned
int
flags
);
void
enable_mmu
(
unsigned
int
flags
);
void
enable_mmu_direct_el1
(
unsigned
int
flags
);
void
enable_mmu_direct_el2
(
unsigned
int
flags
);
...
...
This diff is collapsed.
Click to expand it.
lib/xlat_tables_v2/xlat_tables_context.c
View file @
787d848a
...
...
@@ -239,6 +239,23 @@ void enable_mmu_el3(unsigned int flags)
enable_mmu_direct_el3
(
flags
);
}
void
enable_mmu
(
unsigned
int
flags
)
{
switch
(
get_current_el_maybe_constant
())
{
case
1
:
enable_mmu_el1
(
flags
);
break
;
case
2
:
enable_mmu_el2
(
flags
);
break
;
case
3
:
enable_mmu_el3
(
flags
);
break
;
default:
panic
();
}
}
#else
/* !__aarch64__ */
void
enable_mmu_svc_mon
(
unsigned
int
flags
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help