Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2675 → Rev 2676

/trunk/kernel/generic/include/ipc/ipc.h
174,15 → 174,13
#define IPC_M_AS_AREA_RECV 5
 
/** Send data to another address space over IPC.
* - ARG1 - destination address space virtual address, may be overriden by the
* recipient
* - ARG2 - source address space virtual address
* - ARG3 - size of data to be copied, may be overriden by the recipient
* - ARG1 - source address space virtual address
* - ARG2 - size of data to be copied, may be overriden by the recipient
*
* on answer, the recipient must set:
*
* - ARG1 - final destination address space virtual address
* - ARG3 - final size of data to be copied
* - ARG2 - final size of data to be copied
*/
#define IPC_M_DATA_WRITE 6
 
/trunk/kernel/generic/src/ipc/sysipc.c
272,8 → 272,8
uintptr_t max_size;
 
dst = IPC_GET_ARG1(answer->data);
size = IPC_GET_ARG3(answer->data);
max_size = IPC_GET_ARG3(*olddata);
size = IPC_GET_ARG2(answer->data);
max_size = IPC_GET_ARG2(*olddata);
 
if (size <= max_size) {
rc = copy_to_uspace((void *) dst,
325,8 → 325,8
return ELIMIT;
break;
case IPC_M_DATA_WRITE:
src = IPC_GET_ARG2(call->data);
size = IPC_GET_ARG3(call->data);
src = IPC_GET_ARG1(call->data);
size = IPC_GET_ARG2(call->data);
if ((size <= 0) || (size > DATA_XFER_LIMIT))
return ELIMIT;