changeset 262:3a080883a4f4

call vm interface
author tobaru
date Sat, 25 Jan 2020 22:39:13 +0900
parents 80398e02ae72
children a78f9919fcf0
files src/proc.cbc
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/proc.cbc	Fri Jan 24 20:44:49 2020 +0900
+++ b/src/proc.cbc	Sat Jan 25 22:39:13 2020 +0900
@@ -128,7 +128,9 @@
         panic("userinit: out of memory?");
     }
 
-    inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
+    // inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
+    struct vm* vm = createvm_impl(&proc->cbc_context);
+    goto vm->init_vmm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
 
     p->sz = PTE_SZ;