- Timestamp:
- 2006-05-05T15:14:34Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c6c59ccd
- Parents:
- e8194664
- Location:
- generic
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/syscall/copy.h
re8194664 rf58af46 38 38 extern char memcpy_to_uspace_failover_address; 39 39 40 extern int copy_from_uspace(void *dst, void *uspace_src, size_t size);41 extern int copy_to_uspace(void *dst_uspace, void *src, size_t size);40 extern int copy_from_uspace(void *dst, const void *uspace_src, size_t size); 41 extern int copy_to_uspace(void *dst_uspace, const void *src, size_t size); 42 42 43 43 /* 44 44 * This interface must be implemented by each architecture. 45 45 */ 46 extern int memcpy_from_uspace(void *dst, void *uspace_src, size_t size);47 extern int memcpy_to_uspace(void *uspace_dst, void *src, size_t size);46 extern int memcpy_from_uspace(void *dst, const void *uspace_src, size_t size); 47 extern int memcpy_to_uspace(void *uspace_dst, const void *src, size_t size); 48 48 49 49 #endif -
generic/src/ipc/sysipc.c
re8194664 rf58af46 309 309 call = ipc_call_alloc(0); 310 310 rc = copy_from_uspace(&call->data.args, &data->args, sizeof(call->data.args)); 311 if (rc != 0) 311 if (rc != 0) { 312 ipc_call_free(call); 312 313 return (__native) rc; 314 } 313 315 if (!(res=request_preprocess(call))) 314 316 ipc_call(phone, call); -
generic/src/syscall/copy.c
re8194664 rf58af46 55 55 * @return 0 on success or error code from @ref errno.h. 56 56 */ 57 int copy_from_uspace(void *dst, void *uspace_src, size_t size)57 int copy_from_uspace(void *dst, const void *uspace_src, size_t size) 58 58 { 59 59 ipl_t ipl; … … 96 96 * @return 0 on success or error code from @ref errno.h. 97 97 */ 98 int copy_to_uspace(void *uspace_dst, void *src, size_t size)98 int copy_to_uspace(void *uspace_dst, const void *src, size_t size) 99 99 { 100 100 ipl_t ipl; -
generic/src/syscall/syscall.c
re8194664 rf58af46 44 44 #include <synch/futex.h> 45 45 #include <ddi/ddi.h> 46 #include <syscall/copy.h> 46 47 47 48 static __native sys_io(int fd, const void * buf, size_t count) { … … 50 51 51 52 size_t i; 53 char str[10]; 52 54 53 55 for (i = 0; i < count; i++)
Note:
See TracChangeset
for help on using the changeset viewer.