nommu: Add #ifdef CONFIG_MMU around the PTE sanity checks
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
parent
b32f3afe3c
commit
8b79d5f217
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,7 @@
|
||||||
* Sanity check the PTE configuration for the code below - which makes
|
* Sanity check the PTE configuration for the code below - which makes
|
||||||
* certain assumptions about how these bits are layed out.
|
* certain assumptions about how these bits are layed out.
|
||||||
*/
|
*/
|
||||||
|
#ifdef CONFIG_MMU
|
||||||
#if L_PTE_SHARED != PTE_EXT_SHARED
|
#if L_PTE_SHARED != PTE_EXT_SHARED
|
||||||
#error PTE shared bit mismatch
|
#error PTE shared bit mismatch
|
||||||
#endif
|
#endif
|
||||||
|
@ -90,6 +91,7 @@
|
||||||
L_PTE_FILE+L_PTE_PRESENT) > L_PTE_SHARED
|
L_PTE_FILE+L_PTE_PRESENT) > L_PTE_SHARED
|
||||||
#error Invalid Linux PTE bit settings
|
#error Invalid Linux PTE bit settings
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* CONFIG_MMU */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The ARMv6 and ARMv7 set_pte_ext translation function.
|
* The ARMv6 and ARMv7 set_pte_ext translation function.
|
||||||
|
|
Loading…
Add table
Reference in a new issue