]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/riscv: setup initial pagetables
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Wed, 31 May 2023 10:00:05 +0000 (12:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 31 May 2023 10:00:05 +0000 (12:00 +0200)
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 <oleksii.kurochko@gmail.com>
Acked-by: Bobby Eshleman <bobbyeshleman@gmail.com>
xen/arch/riscv/setup.c

index 315804aa872d0900109b7e704804619923ade62b..cf5dc5824ea1e70122832f0782f347872eba0a6b 100644 (file)
@@ -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");