From: Oleksii Kurochko Date: Wed, 31 May 2023 10:00:05 +0000 (+0200) Subject: xen/riscv: setup initial pagetables X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0d74fc2b2f85586ceb5672aedc79c666e529381d;p=people%2Faperard%2Fxen-unstable.git xen/riscv: setup initial pagetables The patch does two thing: 1. Setup initial pagetables. 2. Enable MMU which end up with code in cont_after_mmu_is_enabled() Signed-off-by: Oleksii Kurochko Acked-by: Bobby Eshleman --- diff --git a/xen/arch/riscv/setup.c b/xen/arch/riscv/setup.c index 315804aa87..cf5dc5824e 100644 --- a/xen/arch/riscv/setup.c +++ b/xen/arch/riscv/setup.c @@ -21,7 +21,10 @@ void __init noreturn start_xen(unsigned long bootcpu_id, { early_printk("Hello from C env\n"); - early_printk("All set up\n"); + setup_initial_pagetables(); + + enable_mmu(); + for ( ;; ) asm volatile ("wfi");