Event code 5 — main-opts event

Purpose

If INPL is control level 0 and the number of words indicate 6, or the control level is 1 and the invoke_mainopts flag is set, then the event handler whose member ID is found in the INPL is called requesting the main-opts word to be dynamically completed. If the event does not produce a main-opts word (indicated by returning a -4 in R15 or leaving the main-opts word unaltered), the following characteristics are assumed for the main-opts word: PLIST(HOST) and EXECOPS.

Syntax

Call CEEEVnnn (5, inpl_addr, R13_addr, R0_addr, R1_addr, main_opt_addr)
POINTER   *inpl_addr;
POINTER   *R13_addr;
POINTER   *R0_addr;
POINTER   *R1_addr;
POINTER   *main_opt_addr;
inpl_addr (input)
The INPL passed to CEEINT or CEEP#INT or the INPL generated by CEEPIPI.
R13_addr (input)
A fullword containing the R13 value passed into CEEINT or CEEP#INT or CEEPIPI (call_main).
R0_addr (input)
A fullword containing the R0 value passed into CEEINT or zero when CEEP#INT or CEEPIPI (init_main) are the enclave initialization method.
R1_addr (input)
A fullword containing the R1 value passed into CEEINT or zero when CEEP#INT or CEEPIPI (init_main) are the enclave initialization method.
main_opt_addr (input)
The main-opts word.

Usage notes