to..) I ..,- DMSNUC Area of Storage 0\ I.Q Free Storage Di,;k Storage j:;i 1-/ H CD to AFT 3 3: DMSNUC ......... n w 3: ..,.J til 0 "2iI til ..,- "< ..... en CD c+ CD til iI en 1:-4 ri- O CD I.Q I!II ..,. () t:I Pol i1:1 1-/ 0 \Q H jl.I iii t=' (D r+ CD H iI ..... t:I ri- ..,. 0 t:I I I 0 ..... d II CD to..)
Interrupt Handling In eMS CMS receives virtual SiC, input/output, program, machine, and external
interruptions and passes control to the appropriate handling program. SVC Interruptions
The Conversational Monitor System is SVC (supervisor call) driven. SVC interruptions are handled by the DMSITS resident routines. Two types of SVCs are processed by DMSITS: internal linkage SVC 202 and 203, and any
other SVCs. The internal linkage SiC is issued by the command and function programs of the system when they require the services of other CMS programs. (Commands entered by the user from the terminal are
converted to the internal linkage SVC by DMSINT). as SVCs are
issued by the processing programs (for example, the Assembler).
INTERNAL LINKAGE SVCS When DMSITS receives control as a result of an internal linkage SVC (202 or 203), it saves the contents of the general registers, floating-point
registers, and the SVC old PSW, establishes the normal and error return
addresses, and passes control to the specified routine. (The routine is
specified by the first 8 bytes of the parameter list whose address is
passed in register 1 for SVC 202, or by a halfword code following SVC 203. )
For SVC 202, if the called program is not found in the internal
function table of nucleus {resident} routines, then DMSITS attempts to
call in a module (a CMS file with file type MODULE) of this name via the LOADMOD command.
If the program was not found in the function table, nor was a module
successfully loaded, DMSITS returns an error code to the caller.
To return from the called program, DMSITS restores the calling
program's registers, and makes the appropriate normal or error return as
defined by the calling program. OTHER SVCs The general approach taken by DMSITS to process other SVCs supported
under CMS is essentially the same as that taken for the internal linkage SVCs. However, rather than passing control to a command or functiorr program, as is the case with the internal linkage SVC, DMSITS passes
control to the appropriate routine. The SVC number determines the
appropriate routine.
In handling non-CMS SiC calls, DMSITS refers first to a user-defined SVC table (if one has been set up by the DMSHDS program). If the
user-defined SVC table is present, any SVC number (other than 202 or 203) is looked for in that table. If it is found, control is
transferred to the routine at the specified address. CMS Introduction 2-7
Previous Page Next Page