If the SVC number is not found in the user-defined SVC table (or if
the table is nonexistent),DMSITS either transfers control to the CMSDCS shared segment (if SETDOS ON has issuedj, UL the standard system table (contained in DMSSVT) of as calls is searched for that SVC number. SVC number is found, control is transferred to the corresponding
address in the usual manner. Ifthe SVC is not in either table, then
the supervisor call is treated as an abend call.
TheDMSHDS initialization program sets up the user-defined SVC table.
It is possible for a user to provide his ownSVC routines. Input/Output Interruptions
All input/output interruptions are received by theI/O interrupt
handler,DMSITI. DMSITI saves the I/O old PSi and the CSW (channel
status word). It then determines the status and requirements of the
device causing the interruption and passes control to the routine that
processes interruptions from that device.DMSI!I scans the entries in
the device table until it finds the one containing the device address
that is thesame as that of the interrupting device. The device table (DEVTAB) contains an entry for each device in the system. Each entry
for a particular device contains, among other things, the address of the
program that processes interruptions from that device.When the appropriate interrupt handling routine completes its
processing, it returns control toDMSITI. At this point, tests
the wait bit in the savedI/O old PSi. If this bit is off, the
interruption was probably causedby a terminal (asynchronous) I/O operation. DMSITI then returns control to the interrupted program by
loading theI/O old PSi. If the wait bit is on, the interruption was probably caused by a
nonterminal (synchronous)I/O operation. The program that initiated the
operation most likely called theDMSIOi function routine to wait for a
particulartype of interruption (l1sually a device end) • In this case, DMSITI checks the pseudo-wait bit in the device table entry for the
interrupting device. If this bit is off, the system is waiting for some
event other than the interruption from the interrupting device; returns to the wait state by loading the saved I/O old PSi. (This PSi has the wait bit on.)
If the pseudo-wait bit is on, the system is waiting for an
interruption from that particular device. If this interruption is not
the one being waited for,DMSITI loads the saved I/O old PSi. This will
again place the machine in the wait state. Thus, the program that is
waiting for a particular interruption will be kept waiting until that
interruption occurs.
If the interruption is the one being waited for,DMSITI resets both
the pseudo-wait bit in the device table entry and the wait bit in theI/O old PSi. It then loads that PSi. This causes control to be
returned tothe DMSIOW function routine, Which, in turn, returns control
to the program that called it to wait for the interruption.Part 3. Conversational Monitor System (CMS) 237
the table is nonexistent),
address in the usual manner. If
the supervisor call is treated as an abend call.
The
It is possible for a user to provide his own
All input/output interruptions are received by the
handler,
status word). It then determines the status and requirements of the
device causing the interruption and passes control to the routine that
processes interruptions from that device.
the device table until it finds the one containing the device address
that is the
for a particular device contains, among other things, the address of the
program that processes interruptions from that device.
processing, it returns control to
the wait bit in the saved
interruption was probably caused
loading the
nonterminal (synchronous)
operation most likely called the
particular
interrupting device. If this bit is off, the system is waiting for some
event other than the interruption from the interrupting device;
If the pseudo-wait bit is on, the system is waiting for an
interruption from that particular device. If this interruption is not
the one being waited for,
again place the machine in the wait state. Thus, the program that is
waiting for a particular interruption will be kept waiting until that
interruption occurs.
If the interruption is the one being waited for,
the pseudo-wait bit in the device table entry and the wait bit in the
returned to
to the program that called it to wait for the interruption.