Mercurial > hg > CbC > CbC_xv6
diff src/proc.cbc @ 263:97c6157bac16
fix_goto_switchuvm_check_pgdirvm_impl
author | anatofuz |
---|---|
date | Wed, 05 Feb 2020 15:22:41 +0900 |
parents | 1696f9c2ad0d |
children | 5854cbf18c67 |
line wrap: on
line diff
--- a/src/proc.cbc Wed Feb 05 14:11:58 2020 +0900 +++ b/src/proc.cbc Wed Feb 05 15:22:41 2020 +0900 @@ -183,7 +183,9 @@ __ncode cbc_switchuvm_dummy(struct Context* cbc_context, struct proc* proc){ struct vm* vm = createvm_impl(cbc_context); - Gearef(cbc_context, vm)->vm = (union Data*) vm; + //Gearef(cbc_context, vm)->vm = (union Data*) vm; + Gearef(cbc_context, vm)->p = proc; + Gearef(cbc_context, vm)->next = C_vm_void_ret ; goto meta(cbc_context, vm->switchuvm); }