TaskResume¶
Lets a suspended task run again, or continues a faulted task.
| Number | Selector | Blocking | Since |
|---|---|---|---|
0x0C SVC_MANAGETASK |
MNGTASK_RESUME (6) |
no | 2.0 |
Err TaskResume(Handle h);
Registers: (task) -> r0 status
Continuing a faulted task also unfreezes its space; fix its registers with TaskSetRegs() first, or it faults again.
Parameters¶
| Name | Direction | Description |
|---|---|---|
h |
in | Task handle with PERM_CNTL. |
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_BADARG |
The task is neither suspended nor faulted, or h is -1. |