Rename sys_vmctl_get_cr3_i386

This commit is contained in:
Arun Thomas
2012-08-11 17:45:35 +02:00
parent 263ec1e885
commit 697f0d097f
5 changed files with 13 additions and 12 deletions

View File

@@ -12,16 +12,17 @@ int sys_vmctl(endpoint_t who, int param, u32_t value)
return(r);
}
int sys_vmctl_get_cr3_i386(endpoint_t who, u32_t *cr3)
/* Get page directory base register */
int sys_vmctl_get_pdbr(endpoint_t who, u32_t *pdbr)
{
message m;
int r;
m.SVMCTL_WHO = who;
m.SVMCTL_PARAM = VMCTL_I386_GETCR3;
m.SVMCTL_PARAM = VMCTL_GET_PDBR;
r = _kernel_call(SYS_VMCTL, &m);
if(r == OK) {
*cr3 = m.SVMCTL_VALUE;
*pdbr = m.SVMCTL_VALUE;
}
return(r);
}