Subversion Repositories HelenOS

Rev

Rev 1027 | Rev 1040 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1027 Rev 1032
Line 55... Line 55...
55
   
55
   
56
    return count;
56
    return count;
57
}
57
}
58
 
58
 
59
 
59
 
-
 
60
static __native sys_mmap(void *address, size_t size, int flags)
-
 
61
{
-
 
62
    if (as_area_create(AS, flags, size, (__address) address))
-
 
63
        return (__native) address;
-
 
64
    else
-
 
65
        return (__native) -1;
-
 
66
}
-
 
67
 
60
static __native sys_mremap(void *address, size_t size, unsigned long flags)
68
static __native sys_mremap(void *address, size_t size, int flags)
61
{
69
{
62
    return as_remap(AS, (__address) address, size, 0);
70
    return as_remap(AS, (__address) address, size, 0);
63
}
71
}
64
 
72
 
65
syshandler_t syscall_table[SYSCALL_END] = {
73
syshandler_t syscall_table[SYSCALL_END] = {
66
    sys_ctl,
74
    sys_ctl,
67
    sys_io,
75
    sys_io,
-
 
76
    sys_mmap,
68
    sys_mremap,
77
    sys_mremap,
69
    sys_ipc_call_sync_fast,
78
    sys_ipc_call_sync_fast,
70
    sys_ipc_call_sync,
79
    sys_ipc_call_sync,
71
    sys_ipc_call_async_fast,
80
    sys_ipc_call_async_fast,
72
    sys_ipc_call_async,
81
    sys_ipc_call_async,