sysproc.c
//changing protection level of some pages to be
//read and write
//returns 0 if successfull
changing protection level of some pages to be
read and write
returns 0 if successfull
changing protection level of some pages to be read and write returns 0 if successfull
int
sys_munprotect(void)
{
  char *addr;
  int len;
  if(argstr(0, &addr) < 0 || argint(1, &len) < 0)
        return -1;
  if(munprotect(addr, len))
	  return -1;
  return 0;
}
int sys_munprotect ( void ) { char * addr ; int len ; if ( argstr ( 0 , & addr ) < 0 || argint ( 1 , & len ) < 0 ) return -1 ; if ( munprotect ( addr , len ) ) return -1 ; return 0 ; }
changing protection level of some pages to be
read and write
returns 0 if successfull
changing protection level of some pages to be read and write returns 0 if successfull
//do something for arguments