source: trunk/minix/lib/syslib/sys_umap.c@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 800 bytes
Line 
1#include "syslib.h"
2
3/*===========================================================================*
4 * sys_umap *
5 *===========================================================================*/
6PUBLIC int sys_umap(proc_nr, seg, vir_addr, bytes, phys_addr)
7int proc_nr; /* process number to do umap for */
8int seg; /* T, D, or S segment */
9vir_bytes vir_addr; /* address in bytes with segment*/
10vir_bytes bytes; /* number of bytes to be copied */
11phys_bytes *phys_addr; /* placeholder for result */
12{
13 message m;
14 int result;
15
16 m.CP_SRC_ENDPT = proc_nr;
17 m.CP_SRC_SPACE = seg;
18 m.CP_SRC_ADDR = vir_addr;
19 m.CP_NR_BYTES = bytes;
20
21 result = _taskcall(SYSTASK, SYS_UMAP, &m);
22 *phys_addr = m.CP_DST_ADDR;
23 return(result);
24}
25
Note: See TracBrowser for help on using the repository browser.