Rev 4508 | Rev 4618 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4508 | Rev 4617 | ||
---|---|---|---|
Line 146... | Line 146... | ||
146 | free(ldr); |
146 | free(ldr); |
147 | 147 | ||
148 | return 0; |
148 | return 0; |
149 | } |
149 | } |
150 | 150 | ||
151 | int task_wait(task_id_t id) |
151 | int task_wait(task_id_t id, int *retval) |
152 | { |
152 | { |
- | 153 | ipcarg_t rv; |
|
- | 154 | int rc; |
|
- | 155 | ||
153 | return (int) async_req_2_0(PHONE_NS, NS_TASK_WAIT, LOWER32(id), UPPER32(id)); |
156 | rc = (int) async_req_2_1(PHONE_NS, NS_TASK_WAIT, LOWER32(id), |
- | 157 | UPPER32(id), &rv); |
|
- | 158 | *retval = rv; |
|
- | 159 | ||
- | 160 | return rc; |
|
- | 161 | } |
|
- | 162 | ||
- | 163 | int task_retval(int val) |
|
- | 164 | { |
|
- | 165 | task_id_t id; |
|
- | 166 | ||
- | 167 | id = task_get_id(); |
|
- | 168 | return (int) async_req_3_0(PHONE_NS, NS_RETVAL, LOWER32(id), |
|
- | 169 | UPPER32(id), val); |
|
154 | } |
170 | } |
155 | 171 | ||
156 | /** @} |
172 | /** @} |
157 | */ |
173 | */ |