don't print SYSTEM stacktrace on exceptions as it's not scheduled any more.
[minix.git] / lib / libsys / sys_vircopy.c
blob6690216d863ab9b98f9bbff817a81fba3a679f31
1 #include "syslib.h"
3 PUBLIC int sys_vircopy(src_proc, src_seg, src_vir,
4 dst_proc, dst_seg, dst_vir, bytes)
5 endpoint_t src_proc; /* source process */
6 int src_seg; /* source memory segment */
7 vir_bytes src_vir; /* source virtual address */
8 endpoint_t dst_proc; /* destination process */
9 int dst_seg; /* destination memory segment */
10 vir_bytes dst_vir; /* destination virtual address */
11 phys_bytes bytes; /* how many bytes */
13 /* Transfer a block of data. The source and destination can each either be a
14 * process number or SELF (to indicate own process number). Virtual addresses
15 * are offsets within LOCAL_SEG (text, stack, data), REMOTE_SEG, or BIOS_SEG.
18 message copy_mess;
20 if (bytes == 0L) return(OK);
21 copy_mess.CP_SRC_ENDPT = src_proc;
22 copy_mess.CP_SRC_SPACE = src_seg;
23 copy_mess.CP_SRC_ADDR = (long) src_vir;
24 copy_mess.CP_DST_ENDPT = dst_proc;
25 copy_mess.CP_DST_SPACE = dst_seg;
26 copy_mess.CP_DST_ADDR = (long) dst_vir;
27 copy_mess.CP_NR_BYTES = (long) bytes;
28 return(_kernel_call(SYS_VIRCOPY, &copy_mess));