[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user