mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
Update to manual pages.
Introduced an ENOMAP error code for l4_unmap.
This commit is contained in:
@@ -443,7 +443,7 @@ int remove_mapping_pgd(unsigned long vaddr, pgd_table_t *pgd)
|
||||
break;
|
||||
|
||||
case PGD_TYPE_FAULT:
|
||||
ret = -1;
|
||||
ret = -ENOMAP;
|
||||
break;
|
||||
|
||||
case PGD_TYPE_SECTION:
|
||||
|
||||
@@ -68,10 +68,11 @@ void update_system_time(void)
|
||||
int sys_time(struct timeval *tv, int set)
|
||||
{
|
||||
int retries = 20;
|
||||
int err;
|
||||
|
||||
if (check_access((unsigned long)tv, sizeof(*tv),
|
||||
MAP_USR_RW_FLAGS, 1) < 0)
|
||||
return -EINVAL;
|
||||
if ((err = check_access((unsigned long)tv, sizeof(*tv),
|
||||
MAP_USR_RW_FLAGS, 1)) < 0)
|
||||
return err;
|
||||
|
||||
/* Get time */
|
||||
if (!set) {
|
||||
|
||||
Reference in New Issue
Block a user