TaskGetRegs¶
Reads the user registers of a faulted or suspended task.
| Number | Selector | Blocking | Since |
|---|---|---|---|
0x0C SVC_MANAGETASK |
MNGTASK_GET_REGS (7) |
no | 2.0 |
Err TaskGetRegs(Handle h, TaskRegs *out);
Registers: (task, out) -> r0 status
Parameters¶
| Name | Direction | Description |
|---|---|---|
h |
in | Task handle with PERM_CNTL. |
out |
out | Receives the registers. |
Returns¶
ZUZU_OK, or an error code.
Errors¶
| Error | Condition |
|---|---|
ERR_BUSY |
The task is neither faulted nor suspended. |
ERR_DEAD |
The task has exited. |
ERR_BADPTR |
out is not writable memory. |
ERR_BADHANDLE |
h is not a live handle. |
ERR_BADTYPE |
h is not a task. |
ERR_NOPERM |
h lacks PERM_CNTL. |