sysproc.c
//return real address given a virtual one
return real address given a virtual one
return real address given a virtual one
int
sys_virt2real(void)
{
  char *ptr;
  argptr(0, &ptr, sizeof(char*));
  ptr = uva2ka(myproc()->pgdir, (char*) ptr);
  return (int)ptr;
}
int sys_virt2real ( void ) { char * ptr ; argptr ( 0 , & ptr , sizeof ( char * ) ) ; ptr = uva2ka ( myproc ( ) -> pgdir , ( char * ) ptr ) ; return ( int ) ptr ; }
return real address given a virtual one
return real address given a virtual one
//ptr = virt2real(myproc()->pgdir ,(char *) ptr); //Failing on case 6 of corretor