comparison src/impl/vm_impl.cbc @ 306:97c6157bac16

fix_goto_switchuvm_check_pgdirvm_impl
author anatofuz
date Wed, 05 Feb 2020 15:22:41 +0900
parents 17ccc6e21e35
children
comparison
equal deleted inserted replaced
304:9fa2e66bc9ed 306:97c6157bac16
142 goto kpt_alloc_check_impl(vm_impl, next(...)); 142 goto kpt_alloc_check_impl(vm_impl, next(...));
143 } 143 }
144 144
145 typedef struct proc proc; 145 typedef struct proc proc;
146 __code switchuvmvm_impl(struct vm_impl* vm , struct proc* p, __code next(...)) { //:skip 146 __code switchuvmvm_impl(struct vm_impl* vm , struct proc* p, __code next(...)) { //:skip
147 147 Gearef(cbc_context, vm_impl)->p = p;
148 goto switchuvm_check_pgdirvm_impl(...); 148 Gearef(cbc_context, vm_impl)->next = next;
149 goto switchuvm_check_pgdirvm_impl(vm, p, next(...));
149 } 150 }
150 151
151 __code init_inituvmvm_impl(struct vm_impl* vm, pde_t* pgdir, char* init, uint sz, __code next(...)) { 152 __code init_inituvmvm_impl(struct vm_impl* vm, pde_t* pgdir, char* init, uint sz, __code next(...)) {
152 153
153 Gearef(cbc_context, vm_impl)->pgdir = pgdir; 154 Gearef(cbc_context, vm_impl)->pgdir = pgdir;