include: arm64: Fix compile with default MMU off
If default config ARM_MMU is set to n, samples/tests will have compilation error. This is because the arch/arm/aarch64/arm_mmu.h is always included. Signed-off-by: Henry Wang <Henry.Wang@arm.com>
This commit is contained in:
parent
c5c55ee47e
commit
542cd9bdbb
1 changed files with 4 additions and 0 deletions
|
@ -29,7 +29,9 @@
|
|||
#include <arch/arm64/sys_io.h>
|
||||
#include <arch/arm64/timer.h>
|
||||
#include <arch/arm64/error.h>
|
||||
#ifdef CONFIG_ARM_MMU
|
||||
#include <arch/arm64/arm_mmu.h>
|
||||
#endif
|
||||
#include <arch/arm64/thread_stack.h>
|
||||
#include <arch/common/addr_types.h>
|
||||
#include <arch/common/sys_bitops.h>
|
||||
|
@ -72,7 +74,9 @@ typedef struct {
|
|||
} k_mem_partition_attr_t;
|
||||
|
||||
struct arch_mem_domain {
|
||||
#ifdef CONFIG_ARM_MMU
|
||||
struct arm_mmu_ptables ptables;
|
||||
#endif
|
||||
sys_snode_t node;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue