comparison src/interface/vm.h @ 193:1301727600cc

success build
author anatofuz
date Wed, 22 Jan 2020 21:56:18 +0900
parents 429f0c3cc097
children 7a4d299a35be
comparison
equal deleted inserted replaced
192:429f0c3cc097 193:1301727600cc
1 typedef struct vm<Type,Impl> { 1 typedef struct vm<Type,Impl> {
2 union Data* vm; 2 union Data* vm;
3 unsigned int low; 3 uint low;
4 unsigned int hi; 4 uint hi;
5 struct proc* p; 5 struct proc* p;
6 pde_t* pgdir; 6 pde_t* pgdir;
7 char* init; 7 char* init;
8 unsigned int sz; 8 uint sz;
9 char* addr; 9 char* addr;
10 struct inode* ip; 10 struct inode* ip;
11 unsigned int offset; 11 uint offset;
12 unsigned int oldsz; 12 uint oldsz;
13 unsigned int newsz; 13 uint newsz;
14 char* uva; 14 char* uva;
15 unsigned int va; 15 uint va;
16 void* pp; 16 void* pp;
17 unsigned int len; 17 uint len;
18 unsigned int phy_low; 18 uint phy_low;
19 unsigned int phy_hi; 19 uint phy_hi;
20 __code init_vmm(Impl* vm, __code next(...)); 20 __code init_vmm(Impl* vm, __code next(...));
21 __code kpt_freerange(Impl* vm, unsigned int low, unsigned int hi, __code next(...)); 21 __code kpt_freerange(Impl* vm, uint low, uint hi, __code next(...));
22 __code kpt_alloc(Impl* vm ,__code next(...)); 22 __code kpt_alloc(Impl* vm ,__code next(...));
23 __code switchuvm(Impl* vm ,struct proc* p, __code next(...)); 23 __code switchuvm(Impl* vm ,struct proc* p, __code next(...));
24 __code init_inituvm(Impl* vm, pde_t* pgdir, char* init, unsigned int sz, __code next(...)); 24 __code init_inituvm(Impl* vm, pde_t* pgdir, char* init, uint sz, __code next(...));
25 __code loaduvm(Impl* vm,pde_t* pgdir, char* addr, struct inode* ip, unsigned int offset, unsigned int sz, __code next(...)); 25 __code loaduvm(Impl* vm,pde_t* pgdir, char* addr, struct inode* ip, uint offset, uint sz, __code next(...));
26 __code allocuvm(Impl* vm, pde_t* pgdir, unsigned int oldsz, unsigned int newsz, __code next(...)); 26 __code allocuvm(Impl* vm, pde_t* pgdir, uint oldsz, uint newsz, __code next(...));
27 __code clearpteu(Impl* vm, pde_t* pgdir, char* uva, __code next(...)); 27 __code clearpteu(Impl* vm, pde_t* pgdir, char* uva, __code next(...));
28 __code copyuvm(Impl* vm, pde_t* pgdir, unsigned int sz, __code next(...)); 28 __code copyuvm(Impl* vm, pde_t* pgdir, uint sz, __code next(...));
29 __code uva2ka(Impl* vm, pde_t* pgdir, char* uva, __code next(...)); 29 __code uva2ka(Impl* vm, pde_t* pgdir, char* uva, __code next(...));
30 __code copyout(Impl* vm, pde_t* pgdir, unsigned int va, void* pp, unsigned int len, __code next(...)); 30 __code copyout(Impl* vm, pde_t* pgdir, uint va, void* pp, uint len, __code next(...));
31 __code pagind_int(Impl* vm, unsigned int phy_low, unsigned int phy_hi, __code next(...)); 31 __code pagind_int(Impl* vm, uint phy_low, uint phy_hi, __code next(...));
32 __code next(...); 32 __code next(...);
33 } vm; 33 } vm;