Changeset 6b10dab in mainline for kernel/generic/src/ipc/sysipc.c
- Timestamp:
- 2010-12-14T15:26:36Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dd8d5a7
- Parents:
- 96b02eb9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/sysipc.c
r96b02eb9 r6b10dab 49 49 #include <syscall/copy.h> 50 50 #include <security/cap.h> 51 #include <console/console.h> 51 52 #include <mm/as.h> 52 53 #include <print.h> … … 1128 1129 } 1129 1130 1130 #i nclude <console/console.h>1131 1132 /** Syscall connect to a task by id.1131 #ifdef __32_BITS__ 1132 1133 /** Syscall connect to a task by ID (32 bits) 1133 1134 * 1134 1135 * @return Phone id on success, or negative error code. 1135 1136 * 1136 1137 */ 1137 sysarg_t sys_ipc_connect_kbox(sysarg64_t *uspace_taskid _arg)1138 sysarg_t sys_ipc_connect_kbox(sysarg64_t *uspace_taskid) 1138 1139 { 1139 1140 #ifdef CONFIG_UDEBUG 1140 sysarg64_t taskid _arg;1141 int rc = copy_from_uspace(&taskid _arg, uspace_taskid_arg, sizeof(sysarg64_t));1141 sysarg64_t taskid; 1142 int rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(sysarg64_t)); 1142 1143 if (rc != 0) 1143 1144 return (sysarg_t) rc; 1144 1145 1145 LOG("sys_ipc_connect_kbox(%" PRIu64 ")", taskid_arg.value); 1146 1147 return ipc_connect_kbox(taskid_arg.value); 1146 return ipc_connect_kbox((task_id_t) taskid); 1148 1147 #else 1149 1148 return (sysarg_t) ENOTSUP; … … 1151 1150 } 1152 1151 1152 #endif /* __32_BITS__ */ 1153 1154 #ifdef __64_BITS__ 1155 1156 /** Syscall connect to a task by ID (64 bits) 1157 * 1158 * @return Phone id on success, or negative error code. 1159 * 1160 */ 1161 sysarg_t sys_ipc_connect_kbox(sysarg_t taskid) 1162 { 1163 #ifdef CONFIG_UDEBUG 1164 return ipc_connect_kbox((task_id_t) taskid); 1165 #else 1166 return (sysarg_t) ENOTSUP; 1167 #endif 1168 } 1169 1170 #endif /* __64_BITS__ */ 1171 1153 1172 /** @} 1154 1173 */
Note:
See TracChangeset
for help on using the changeset viewer.