# HG changeset patch # User tobaru # Date 1579959553 -32400 # Node ID 3a080883a4f4e66ed3f3585db71e2b4f26fd87db # Parent 80398e02ae72fef6f819d77b1fc8132c4585cbd9 call vm interface diff -r 80398e02ae72 -r 3a080883a4f4 src/proc.cbc --- 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;