Mercurial > hg > Members > menikon > CbC_xv6
changeset 274:58da7a1234f7
s/vm->impl=/Gearef/
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 28 Jan 2020 12:35:11 +0900 |
parents | 4e11e4fa3e11 |
children | 84ab6c197dd8 |
files | src/impl/vm_impl.cbc |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/impl/vm_impl.cbc Mon Jan 27 17:23:02 2020 +0900 +++ b/src/impl/vm_impl.cbc Tue Jan 28 12:35:11 2020 +0900 @@ -107,12 +107,13 @@ } __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; - + Gearef(cbc_context, vm_impl)->pgdir = pgdir; + Gearef(cbc_context, vm_impl)->addr = addr; + Gearef(cbc_context, vm_impl)->ip = ip; + Gearef(cbc_context, vm_impl)->offset = offset; + Gearef(cbc_context, vm_impl)->sz = sz; + Gearef(cbc_context, vm_impl)->next = next; + goto loaduvm_ptesize_checkvm_impl(vm, next(...)); }