kernel/vm: change pde table info from single buffer to explicit per-process.

makes code in kernel more readable, and allows better sanity checking on
using the pde info.
This commit is contained in:
Ben Gras
2010-05-12 08:31:05 +00:00
parent 23204787d5
commit c5c25e7abc
11 changed files with 75 additions and 34 deletions
+15
View File
@@ -26,6 +26,21 @@ PUBLIC int sys_vmctl_get_cr3_i386(endpoint_t who, u32_t *cr3)
return(r);
}
PUBLIC int sys_vmctl_set_addrspace(endpoint_t who,
phys_bytes ptroot, void *ptroot_v)
{
message m;
int r;
m.SVMCTL_WHO = who;
m.SVMCTL_PARAM = VMCTL_SETADDRSPACE;
m.SVMCTL_PTROOT = ptroot;
m.SVMCTL_PTROOT_V = ptroot_v;
r = _kernel_call(SYS_VMCTL, &m);
return(r);
}
PUBLIC int sys_vmctl_get_memreq(endpoint_t *who, vir_bytes *mem,
vir_bytes *len, int *wrflag, endpoint_t *who_s, vir_bytes *mem_s,
endpoint_t *requestor)