Commit 7febd83e authored by Antonio Nino Diaz's avatar Antonio Nino Diaz
Browse files

xlat_v2: Fix descriptor debug print



The XN, PXN and UXN bits are part of the upper attributes, not the
lower attributes.

Change-Id: Ia5e83f06f2a8de88b551f55f1d36d694918ccbc0
Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
parent d135ad78
...@@ -1087,13 +1087,13 @@ static void xlat_desc_print(const xlat_ctx_t *ctx, uint64_t desc) ...@@ -1087,13 +1087,13 @@ static void xlat_desc_print(const xlat_ctx_t *ctx, uint64_t desc)
if (xlat_regime == EL3_REGIME) { if (xlat_regime == EL3_REGIME) {
/* For EL3, the XN bit is all what matters */ /* For EL3, the XN bit is all what matters */
tf_printf("%s", LOWER_ATTRS(XN) & desc ? xn_str : exec_str); tf_printf("%s", (UPPER_ATTRS(XN) & desc) ? xn_str : exec_str);
} else { } else {
/* For EL0 and EL1, we need to know who has which rights */ /* For EL0 and EL1, we need to know who has which rights */
tf_printf("%s", LOWER_ATTRS(PXN) & desc ? xn_str : exec_str); tf_printf("%s", (UPPER_ATTRS(PXN) & desc) ? xn_str : exec_str);
tf_printf("%s", priv_str); tf_printf("%s", priv_str);
tf_printf("%s", LOWER_ATTRS(UXN) & desc ? xn_str : exec_str); tf_printf("%s", (UPPER_ATTRS(UXN) & desc) ? xn_str : exec_str);
tf_printf("%s", user_str); tf_printf("%s", user_str);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment