# HG changeset patch # User anatofuz # Date 1580794436 -32400 # Node ID 124c51584208f979e3dd9b2739c6853bc0b5d9e6 # Parent 274bbf78b87b3fef619ce879bb876e268b32fe6e update vm_impl.h diff -r 274bbf78b87b -r 124c51584208 src/impl/vm_impl.h --- a/src/impl/vm_impl.h Tue Feb 04 14:04:34 2020 +0900 +++ b/src/impl/vm_impl.h Tue Feb 04 14:33:56 2020 +0900 @@ -1,36 +1,9 @@ typedef struct vm_impl impl vm{ - union Data* vm_impl; - uint i; - pte_t* pte; - uint sz; - pde_t* pgdir; - char* addr; - struct inode* ip; - uint offset; - uint pa; - uint n; - uint oldsz; - uint newsz; - uint a; - int ret; - char* mem; - char* uva; - pde_t* d; - uint ap; - uint phy_low; - uint phy_hi; - uint va; - void* pp; - uint len; - char* buf; - char* pa0; - uint va0; - proc_struct* p; - char* init; - __code kpt_alloc_check_impl(Type* vm_impl, __code next(...)); + __code loaduvm_ptesize_checkvm_impl(Type* vm_impl, char* addr, __code next(...)); __code loaduvm_ptesize_check(Type* vm_impl, __code next(int ret, ...)); __code loaduvm_loop(Type* vm_impl, uint i, pte_t* pte, uint sz, __code next(int ret, ...)); + __code loaduvm_check_PTE_SZ(struct vm_impl* vm_impl, uint sz, uint i, uint n, struct inode* ip, uint pa, uint offset, __code next(int ret, ...)); __code allocuvm_check_newsz(Type* vm_impl, pde_t* pgdir, uint oldsz, uint newsz, __code next(...)); __code allocuvm_loop(Type* vm_impl, pde_t* pgdir, uint oldsz, uint newsz, uint a, __code next(...)); __code copyuvm_check_null(Type* vm_impl, pde_t* pgdir, uint sz, __code next(...));