Browse Source
They only contained one function that is easily integrated in the private library header and the existing architectural C files. This also helps making the library more portable, as the Makefile of the library now doesn't use the variable INCLUDES, which is specific to this codebase and doesn't respect the namespace of the library. Change-Id: I22228e6a97e9b4f346f5cd8947609263e8df71d8 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>pull/1481/head
Antonio Nino Diaz
6 years ago
8 changed files with 20 additions and 54 deletions
@ -1,22 +0,0 @@ |
|||
/*
|
|||
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
|
|||
#ifndef __XLAT_TABLES_ARCH_PRIVATE_H__ |
|||
#define __XLAT_TABLES_ARCH_PRIVATE_H__ |
|||
|
|||
#include <xlat_tables_defs.h> |
|||
#include <xlat_tables_v2.h> |
|||
|
|||
/*
|
|||
* Return the execute-never mask that will prevent instruction fetch at the |
|||
* given translation regime. |
|||
*/ |
|||
static inline uint64_t xlat_arch_regime_get_xn_desc(int regime __unused) |
|||
{ |
|||
return UPPER_ATTRS(XN); |
|||
} |
|||
|
|||
#endif /* __XLAT_TABLES_ARCH_PRIVATE_H__ */ |
@ -1,28 +0,0 @@ |
|||
/*
|
|||
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
|
|||
#ifndef __XLAT_TABLES_ARCH_PRIVATE_H__ |
|||
#define __XLAT_TABLES_ARCH_PRIVATE_H__ |
|||
|
|||
#include <assert.h> |
|||
#include <xlat_tables_defs.h> |
|||
#include <xlat_tables_v2.h> |
|||
|
|||
/*
|
|||
* Return the execute-never mask that will prevent instruction fetch at all ELs |
|||
* that are part of the given translation regime. |
|||
*/ |
|||
static inline uint64_t xlat_arch_regime_get_xn_desc(int regime) |
|||
{ |
|||
if (regime == EL1_EL0_REGIME) { |
|||
return UPPER_ATTRS(UXN) | UPPER_ATTRS(PXN); |
|||
} else { |
|||
assert(regime == EL3_REGIME); |
|||
return UPPER_ATTRS(XN); |
|||
} |
|||
} |
|||
|
|||
#endif /* __XLAT_TABLES_ARCH_PRIVATE_H__ */ |
Loading…
Reference in new issue