Changeset 87b4baa in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2010-12-17T20:16:46Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 424558a
- Parents:
- 463e734 (diff), bbc74af7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r463e734 r87b4baa 755 755 * 756 756 */ 757 unative_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name,757 sysarg_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name, 758 758 size_t name_len, thread_id_t *uspace_thread_id) 759 759 { … … 764 764 int rc = copy_from_uspace(namebuf, uspace_name, name_len); 765 765 if (rc != 0) 766 return ( unative_t) rc;766 return (sysarg_t) rc; 767 767 768 768 namebuf[name_len] = 0; … … 779 779 if (rc != 0) { 780 780 free(kernel_uarg); 781 return ( unative_t) rc;781 return (sysarg_t) rc; 782 782 } 783 783 … … 804 804 free(kernel_uarg); 805 805 806 return ( unative_t) rc;806 return (sysarg_t) rc; 807 807 } 808 808 } … … 827 827 free(kernel_uarg); 828 828 829 return ( unative_t) ENOMEM;829 return (sysarg_t) ENOMEM; 830 830 } 831 831 … … 833 833 * 834 834 */ 835 unative_t sys_thread_exit(int uspace_status)835 sysarg_t sys_thread_exit(int uspace_status) 836 836 { 837 837 thread_exit(); … … 849 849 * 850 850 */ 851 unative_t sys_thread_get_id(thread_id_t *uspace_thread_id)851 sysarg_t sys_thread_get_id(thread_id_t *uspace_thread_id) 852 852 { 853 853 /* … … 856 856 * 857 857 */ 858 return ( unative_t) copy_to_uspace(uspace_thread_id, &THREAD->tid,858 return (sysarg_t) copy_to_uspace(uspace_thread_id, &THREAD->tid, 859 859 sizeof(THREAD->tid)); 860 860 } 861 861 862 862 /** Syscall wrapper for sleeping. */ 863 unative_t sys_thread_usleep(uint32_t usec)863 sysarg_t sys_thread_usleep(uint32_t usec) 864 864 { 865 865 thread_usleep(usec);
Note:
See TracChangeset
for help on using the changeset viewer.