Everything

unl_cpu

iunl_cpu

Outline
Unlock the CPU.
C format
 ER      unl_cpu (void);
 ER      iunl_cpu (void);
Parameter(s)
None.
Explanation
These service calls transit the system to the CPU unlocked state.
Note 1 These service calls do not perform queuing of cancellation requests. If the system is in the CPU unlocked state, therefore, no processing is performed but it is not handled as an error.
Note 2 These service calls do not cancel the dispatching disabled state that was set by issuing dis_dsp.
Note 3 The CPU locked state is also cancelled by ext_tsk or exd_tsk.
Return value
Macro
Value
Description
E_OK
0
Normal completion.
E_CTX
-25
Context error.
- The ilunl_cpu was issued from task.
- The unl_cpu was issued from task.
- This service call was issued in the status PSW.IPL > kernel interrupt mask level.
E_MACV
-26
Memory access violation. (only for unl_cpu)
- Stack pointer points out of user stack for invoking task.