TaskStart¶
Starts a task created by CreateTask().
| Number | Selector | Blocking | Since |
|---|---|---|---|
0x0C SVC_MANAGETASK |
MNGTASK_START (0) |
no | 2.0 |
Err TaskStart(Handle h, void *entry, void *sp, uint32_t r0, uint32_t r1);
Registers: (task, &args) -> r0 status
Parameters¶
| Name | Direction | Description |
|---|---|---|
h |
in | Task handle with PERM_CNTL. |
entry |
in | Address the task starts executing at. |
sp |
in | Its initial stack pointer. |
r0 |
in | Value of r0 at entry. |
r1 |
in | Value of r1 at entry. |
Returns¶
ZUZU_OK, or an error code.
Errors¶
| Error | Condition |
|---|---|
ERR_BADHANDLE |
h is not a live handle. |
ERR_BADTYPE |
h is not a task. |
ERR_NOPERM |
h lacks PERM_CNTL. |
ERR_BUSY |
The task has already been started. |