Subversion Repositories HelenOS-historic

Rev

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

Rev 1430 Rev 1493
Line 43... Line 43...
43
 *
43
 *
44
 * @return 0 on success, EPERM if the caller lacks the CAP_MEM_MANAGER capability,
44
 * @return 0 on success, EPERM if the caller lacks the CAP_MEM_MANAGER capability,
45
 *     ENOENT if there is no task with specified ID and ENOMEM if there
45
 *     ENOENT if there is no task with specified ID and ENOMEM if there
46
 *     was some problem in creating address space area.
46
 *     was some problem in creating address space area.
47
 */
47
 */
48
int map_physmem(task_id_t id, void *pf, void *vp, unsigned long pages, int flags)
48
int map_physmem(void *pf, void *vp, unsigned long pages, int flags)
49
{
49
{
50
    task_id_t task_id;
-
 
51
    ddi_memarg_t arg;
-
 
52
 
-
 
53
    arg.task_id = id;
-
 
54
    arg.phys_base = pf;
-
 
55
    arg.virt_base = vp;
-
 
56
    arg.pages = pages;
-
 
57
    arg.flags = flags;
-
 
58
 
-
 
59
    return __SYSCALL1(SYS_MAP_PHYSMEM, (sysarg_t) &arg);
50
    return __SYSCALL4(SYS_MAP_PHYSMEM, (sysarg_t) pf, (sysarg_t)vp, pages, flags);
60
}
51
}
61
 
52
 
62
/** Enable I/O space range to task.
53
/** Enable I/O space range to task.
63
 *
54
 *
64
 * Caller of this function must have the IO_MEM_MANAGER capability.
55
 * Caller of this function must have the IO_MEM_MANAGER capability.