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
885ca54a
Unverified
Commit
885ca54a
authored
6 years ago
by
Dimitris Papastamos
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1377 from robertovargas-arm/compiler-warnings
Compiler warnings
parents
22fa3a27
d92a2863
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
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-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_tables_arch.h
+2
-2
include/lib/xlat_tables/xlat_tables_arch.h
lib/xlat_tables_v2/xlat_tables_internal.c
+11
-10
lib/xlat_tables_v2/xlat_tables_internal.c
with
13 additions
and
12 deletions
+13
-12
include/lib/xlat_tables/xlat_tables_arch.h
View file @
885ca54a
...
...
@@ -21,8 +21,8 @@
* limits. Not that these limits are different for AArch32 and AArch64.
*/
#define CHECK_VIRT_ADDR_SPACE_SIZE(size) \
(((size) >= MIN_VIRT_ADDR_SPACE_SIZE) && \
((size) <= MAX_VIRT_ADDR_SPACE_SIZE) &&
\
(((
unsigned long long)(
size) >= MIN_VIRT_ADDR_SPACE_SIZE) && \
((
unsigned long long)(
size) <= MAX_VIRT_ADDR_SPACE_SIZE) && \
IS_POWER_OF_TWO(size))
/*
...
...
This diff is collapsed.
Click to expand it.
lib/xlat_tables_v2/xlat_tables_internal.c
View file @
885ca54a
...
...
@@ -1066,18 +1066,19 @@ static void xlat_desc_print(const xlat_ctx_t *ctx, uint64_t desc)
if
(
xlat_regime
==
EL3_REGIME
)
{
/* For EL3, the AP[2] bit is all what matters */
tf_printf
((
desc
&
LOWER_ATTRS
(
AP_RO
))
?
ro_str
:
rw_str
);
tf_printf
(
"%s"
,
(
desc
&
LOWER_ATTRS
(
AP_RO
))
?
ro_str
:
rw_str
);
}
else
{
const
char
*
ap_str
=
(
desc
&
LOWER_ATTRS
(
AP_RO
))
?
ro_str
:
rw_str
;
tf_printf
(
ap_str
);
tf_printf
(
priv_str
);
tf_printf
(
"%s"
,
ap_str
);
tf_printf
(
"%s"
,
priv_str
);
/*
* EL0 can only have the same permissions as EL1 or no
* permissions at all.
*/
tf_printf
((
desc
&
LOWER_ATTRS
(
AP_ACCESS_UNPRIVILEGED
))
tf_printf
(
"%s"
,
(
desc
&
LOWER_ATTRS
(
AP_ACCESS_UNPRIVILEGED
))
?
ap_str
:
no_access_str
);
tf_printf
(
user_str
);
tf_printf
(
"%s"
,
user_str
);
}
const
char
*
xn_str
=
"-XN"
;
...
...
@@ -1085,14 +1086,14 @@ static void xlat_desc_print(const xlat_ctx_t *ctx, uint64_t desc)
if
(
xlat_regime
==
EL3_REGIME
)
{
/* For EL3, the XN bit is all what matters */
tf_printf
(
LOWER_ATTRS
(
XN
)
&
desc
?
xn_str
:
exec_str
);
tf_printf
(
"%s"
,
LOWER_ATTRS
(
XN
)
&
desc
?
xn_str
:
exec_str
);
}
else
{
/* For EL0 and EL1, we need to know who has which rights */
tf_printf
(
LOWER_ATTRS
(
PXN
)
&
desc
?
xn_str
:
exec_str
);
tf_printf
(
priv_str
);
tf_printf
(
"%s"
,
LOWER_ATTRS
(
PXN
)
&
desc
?
xn_str
:
exec_str
);
tf_printf
(
"%s"
,
priv_str
);
tf_printf
(
LOWER_ATTRS
(
UXN
)
&
desc
?
xn_str
:
exec_str
);
tf_printf
(
user_str
);
tf_printf
(
"%s"
,
LOWER_ATTRS
(
UXN
)
&
desc
?
xn_str
:
exec_str
);
tf_printf
(
"%s"
,
user_str
);
}
tf_printf
(
LOWER_ATTRS
(
NS
)
&
desc
?
"-NS"
:
"-S"
);
...
...
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