Mercurial > hg > Members > menikon > CbC_xv6
changeset 268:640599067820
tweak_cbc_context_propagation
author | anatofuz |
---|---|
date | Mon, 27 Jan 2020 13:50:13 +0900 |
parents | d92c7a06d714 |
children | bd948528b2d6 |
files | src/proc.cbc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/proc.cbc Mon Jan 27 13:32:15 2020 +0900 +++ b/src/proc.cbc Mon Jan 27 13:50:13 2020 +0900 @@ -120,15 +120,15 @@ void dummy(struct proc *p, char _binary_initcode_start[], char _binary_initcode_size[]) { // inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size); - goto cbc_init_vmm_dummy(p, _binary_initcode_start, _binary_initcode_size); + goto cbc_init_vmm_dummy(&p->cbc_context, p, _binary_initcode_start, _binary_initcode_size); } -__ncode cbc_init_vmm_dummy(struct Context* cbc_context, struct proc* p, pde_t* pgdir, char* init, uint sz, enum Code next){//:skip +__ncode cbc_init_vmm_dummy(struct Context* cbc_context, struct proc* p, pde_t* pgdir, char* init, uint sz){//:skip - struct vm* vm = createvm_impl(&proc->cbc_context); + struct vm* vm = createvm_impl(cbc_context); // goto vm->init_vmm(vm, pgdir, init, sz , next(...)); Gearef(cbc_context, vm)->vm = (union Data*) vm; Gearef(cbc_context, vm)->pgdir = pgdir;