diff options
author | Yatharth Kochar <yatharth.kochar@arm.com> | 2015-11-04 19:15:53 +0000 |
---|---|---|
committer | Yatharth Kochar <yatharth.kochar@arm.com> | 2015-12-07 14:31:49 +0000 |
commit | 940a826e822e2b1448fe276e7939187adcd42f40 (patch) | |
tree | ab0a508ef799e35c7f59c8cc2772e81bfef47821 /include | |
parent | 251c4d5e8f928e7fef7c8d7e6a678ea3e26749a2 (diff) |
Add functions to disable the MMU at current exception level.
This patch adds capability to disable the MMU at current exception
level (NS-EL1 or EL2). It is implemented in assembler to ensure that
the data cache is cleaned and invalidated after the MMU is disabled
without any intervening cacheable data accesses.
Change-Id: I546d6a841d00f08bdd4acd9014bd80fc06847d9c
Diffstat (limited to 'include')
-rw-r--r-- | include/lib/aarch64/xlat_tables.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/lib/aarch64/xlat_tables.h b/include/lib/aarch64/xlat_tables.h index 1744928..bb1c693 100644 --- a/include/lib/aarch64/xlat_tables.h +++ b/include/lib/aarch64/xlat_tables.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2014-2015, ARM Limited and Contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -78,5 +78,8 @@ void init_xlat_tables(void); void enable_mmu_el1(uint32_t flags); void enable_mmu_el2(uint32_t flags); +void disable_mmu(void); +void disable_mmu_icache(void); + #endif /*__ASSEMBLY__*/ #endif /* __XLAT_TABLES_H__ */ |