diff src/impl/vm_impl.cbc @ 205:3cac4139b31d

send arg at vm_impl
author tobaru
date Thu, 23 Jan 2020 15:43:36 +0900
parents 758909fc5c60
children 02bb0f8be908
line wrap: on
line diff
--- a/src/impl/vm_impl.cbc	Thu Jan 23 14:55:04 2020 +0900
+++ b/src/impl/vm_impl.cbc	Thu Jan 23 15:43:36 2020 +0900
@@ -68,9 +68,14 @@
     goto next(...);
 }
 
-__code loaduvmvm_impl(struct vm_impl* vm,pde_t* pgdir, char* addr, struct inode* ip, uint offset, uint sz,  __code next(...)) {
-
-    goto next(...);
+__code loaduvmvm_impl(struct vm_impl* vm, pde_t* pgdir, char* addr, struct inode* ip, uint offset, uint sz,  __code next(...)) {
+    vm->pgdir = pgdir;
+    vm->addr = addr;
+    vm->ip = ip;
+    vm->offset = offset;
+    vm->sz = sz;
+    
+    goto loaduvm_ptesize_checkvm_impl(vm, next);
 }
 
 __code allocuvmvm_impl(struct vm_impl* vm, pde_t* pgdir, uint oldsz, uint newsz, __code next(...)) {