Rev 3148 | Rev 3174 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3148 | Rev 3150 | ||
---|---|---|---|
Line 52... | Line 52... | ||
52 | 52 | ||
53 | static int task_spawn_loader(void) |
53 | static int task_spawn_loader(void) |
54 | { |
54 | { |
55 | int phone_id, rc; |
55 | int phone_id, rc; |
56 | 56 | ||
57 | rc = __SYSCALL1(SYS_TASK_SPAWN, (sysarg_t) &phone_id); |
57 | rc = __SYSCALL1(SYS_TASK_SPAWN_LOADER, (sysarg_t) &phone_id); |
58 | if (rc != 0) |
58 | if (rc != 0) |
59 | return rc; |
59 | return rc; |
60 | 60 | ||
61 | return phone_id; |
61 | return phone_id; |
62 | } |
62 | } |
Line 65... | Line 65... | ||
65 | * |
65 | * |
66 | * @param path pathname of the binary to execute |
66 | * @param path pathname of the binary to execute |
67 | * @param argv command-line arguments |
67 | * @param argv command-line arguments |
68 | * @return ID of the newly created task or zero on error. |
68 | * @return ID of the newly created task or zero on error. |
69 | */ |
69 | */ |
70 | task_id_t task_spawn(const char *path, const char *argv[]) |
70 | task_id_t task_spawn_ex(const char *path, const char *argv[]) |
71 | { |
71 | { |
72 | int phone_id; |
72 | int phone_id; |
73 | ipc_call_t answer; |
73 | ipc_call_t answer; |
74 | aid_t req; |
74 | aid_t req; |
75 | int rc; |
75 | int rc; |
Line 103... | Line 103... | ||
103 | ipc_hangup(phone_id); |
103 | ipc_hangup(phone_id); |
104 | 104 | ||
105 | return 1; |
105 | return 1; |
106 | } |
106 | } |
107 | 107 | ||
- | 108 | int task_spawn(void *image, size_t size) |
|
- | 109 | { |
|
- | 110 | return __SYSCALL2(SYS_TASK_SPAWN, (sysarg_t) image, (sysarg_t) size); |
|
- | 111 | } |
|
- | 112 | ||
108 | /** @} |
113 | /** @} |
109 | */ |
114 | */ |