[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

@@ -59,7 +59,6 @@ void arch_early_init(void) {
#if RISCV_S_MODE
sbi_early_init();
#endif
#if RISCV_MMU
riscv_early_mmu_init();