Gary Morrison | 3d7f654 | 2021-01-27 13:08:47 -0600 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2021, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef XLAT_MPU_H |
| 8 | #define XLAT_MPU_H |
| 9 | |
| 10 | #define XLAT_TABLES_LIB_V2 1 |
| 11 | |
| 12 | void enable_mpu_el2(unsigned int flags); |
| 13 | void enable_mpu_direct_el2(unsigned int flags); |
| 14 | |
| 15 | /* |
| 16 | * Function to wipe clean and disable all MPU regions. This function expects |
| 17 | * that the MPU has already been turned off, and caching concerns addressed, |
| 18 | * but it nevertheless also explicitly turns off the MPU. |
| 19 | */ |
| 20 | void clear_all_mpu_regions(void); |
| 21 | |
| 22 | #endif /* XLAT_MPU_H */ |