[arch] have each arch define ARCH_HAS_MMU

This lets some code decide whether or not there's any mmu
present to use. Also kernel VM will complain if it isn't set
as an extra safety.
This commit is contained in:
Travis Geiselbrecht
2021-03-30 00:50:22 -07:00
parent 45a27cbf14
commit 7102838b49
13 changed files with 41 additions and 21 deletions

View File

@@ -28,6 +28,10 @@
#define MMU_INITIAL_MAPPING_FLAG_DEVICE (0x4)
#define MMU_INITIAL_MAPPING_FLAG_DYNAMIC (0x8) /* entry has to be patched up by platform_reset */
#if !ARCH_HAS_MMU
#error ARCH needs to declare mmu support
#endif
#ifndef ASSEMBLY
#include <arch.h>