Mercurial > hg > Members > menikon > CbC_xv6
changeset 271:d1c7018537c0
write static constructor
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 27 Jan 2020 16:46:19 +0900 |
parents | 052669f2ef74 |
children | 4dfd1b3fb9f0 |
files | src/impl/vm_impl.cbc |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/impl/vm_impl.cbc Mon Jan 27 14:50:26 2020 +0900 +++ b/src/impl/vm_impl.cbc Mon Jan 27 16:46:19 2020 +0900 @@ -99,6 +99,10 @@ __code init_inituvmvm_impl(struct vm_impl* vm, pde_t* pgdir, char* init, uint sz, __code next(...)) { + Gearef(cbc_context, vm_impl)->pgdir = pgdir; + Gearef(cbc_context, vm_impl)->init = init; + Gearef(cbc_context, vm_impl)->sz = sz; + Gearef(cbc_context, vm_impl)->next = next; goto init_inituvm_check_sz(vm, pgdir, init, sz, next(...)); }