Page of GA22-7000-4 Revised September 1, 1975
By TNL: GN22-0498
The assignment of priority among requests for
interruption from channels is based on the type of
channel and its address assignment. The priorities of
channels 1-15 are in the order of their addresses,
with channel 1 having the highest priority. The inter
ruption priority of multiplexer channel0 is not fixed,
and depends on the model and on the current activi
ty in the channel. Its priority may be above, below,
or between those of channels 1-15.
Intenuption Action
AnI/O interruption can occur only when the chan
nel the device is not masked and
after the execution of the current instruction in theCPU has been finished. If a channel has established
the priority among requests for interruption from
devices while theCPU was disabled for interruptions
from the channel, the interruption occurs immediate
ly after the finishing of the instruction removing the
mask and before the next instruction is executed.
This interruption is associated with the highest prior
ity condition on the channel. If interruptions are
allowed from more than one channel concurrently,
the interruption occurs from the channel having the
highest priority among those requesting interruption.
If the priority among interruption conditions has
not yet been established in the channel by the time
the interruption is allowed, the interruption does not
necessarily occur immediately after the finishing of
the instruction removing the mask. This delay can
occur regardless of how long the interruption condi
tion has existed in the device or the subchannel.
The interruption causes the current program sta
tus word(PSW) to be stored as the old PSW at loca
tion56 and causes the CSW associated with the intenuption to be stored at location 64. Subsequent
ly, a newPSW is loaded from location 120, and
processing resumes in the state indicated by thisPSW. The I/O device or, in the case of control-unit
end, the control unit causing the interruption is iden
tified in BC mode by the channel address in bit posi
tions 16-23 and by the device address in bit posi
tions 24-31 of the oldPSW. In EC mode, the I/O device or control unit is identified in the I/O-address field (locations 186-187) of the I/O communica
tions area(IOCA). The CSW associated with the
interruption identifies the condition responsible for
the interruption and provides further details about
the progress of the operation and the status of thedevice. ProgJramming Note
When a number ofI/O devices on a shared control
unit are concurrently executing operations such as
rewinding tape or positioning a disk-access mecha-
228Systern/370 Principles of Operation nism, the initial device-end signals generated on
completion of the operations are provided in the
order of generation, unless command chaining is
specified for the operation last initiated. In the latter
case, the control unit provides the device-end signal
for the last initiated operation first, and the other
signals are delayed until the subchannel is freed.
Whenever interruptions due to the device-end signals
are delayed either because the channel is masked
or the subchannel is busy, the original order of
the signals is destroyed.
Channel Status Word
The channel status word(CSW) provides to the
program the status of anI/O device or the indica
tion of the conditions under which anI/O operation
has been concluded. TheCSW is formed, or parts of it-are replaced, in the process of I/O interruptions
and possibly during execution ofSTART I/O, START I/O FAST RELEASE, TEST I/O, CLEAR I/O, HALT I/O, HALT DEVICE, and STORE CHANNEL ID. The CSW is placed in main storage
at reallocation 64 of theCPU to which the channel
is configured, and is available to the program at this
location until the time the nextI/O interruption
occurs or until anotherI/O instruction causes its
contents to be replaced, whichever occurs first.
When theCSW is stored as a result of an I/O interruption, the I/O device is identified in BC mode
in the interruption code of the oldPSW and in EC
mode in the I/O-address field of theI/O communi
cations area(IOCA). The information placed in the CSW by START I/O, START I/O FAST RE
LEASE,TEST I/O, CLEAR I/O, HALT I/O, or
HALT DEVICE pertains to the device addressed by
the instruction.
TheCSW has the following for,mat: CCW Address
o 4 6 8 31: I Unit Status I Channel Status I Count
3240 48
The fields in theCSW are allocated as follows:
Protection Key: Bits0-3 form the protection key
used in the chain of operations at the subchannel.
63
Logout Pending (L): Bit 5, when one, indicates that
anI/O instruction cannot be executed until a pend
ing logout condition has been cleared. Bit 45, chan
nel control check, will always be one when bit 5 is
one.
By TNL: GN22-0498
The assignment of priority among requests for
interruption from channels is based on the type of
channel and its address assignment. The priorities of
channels 1-15 are in the order of their addresses,
with channel 1 having the highest priority. The inter
ruption priority of multiplexer channel
and depends on the model and on the current activi
ty in the channel. Its priority may be above, below,
or between those of channels 1-15.
Intenuption Action
An
nel
after the execution of the current instruction in the
the priority among requests for interruption from
devices while the
from the channel, the interruption occurs immediate
ly after the finishing of the instruction removing the
mask and before the next instruction is executed.
This interruption is associated with the highest prior
ity condition on the channel. If interruptions are
allowed from more than one channel concurrently,
the interruption occurs from the channel having the
highest priority among those requesting interruption.
If the priority among interruption conditions has
not yet been established in the channel by the time
the interruption is allowed, the interruption does not
necessarily occur immediately after the finishing of
the instruction removing the mask. This delay can
occur regardless of how long the interruption condi
tion has existed in the device or the subchannel.
The interruption causes the current program sta
tus word
tion
ly, a new
processing resumes in the state indicated by this
end, the control unit causing the interruption is iden
tified in BC mode by the channel address in bit posi
tions 16-23 and by the device address in bit posi
tions 24-31 of the old
tions area
interruption identifies the condition responsible for
the interruption and provides further details about
the progress of the operation and the status of the
When a number of
unit are concurrently executing operations such as
rewinding tape or positioning a disk-access mecha-
228
completion of the operations are provided in the
order of generation, unless command chaining is
specified for the operation last initiated. In the latter
case, the control unit provides the device-end signal
for the last initiated operation first, and the other
signals are delayed until the subchannel is freed.
Whenever interruptions due to the device-end signals
are delayed either because the channel is masked
or the subchannel is busy, the original order of
the signals is destroyed.
Channel Status Word
The channel status word
program the status of an
tion of the conditions under which an
has been concluded. The
and possibly during execution of
at reallocation 64 of the
is configured, and is available to the program at this
location until the time the next
occurs or until another
contents to be replaced, whichever occurs first.
When the
in the interruption code of the old
mode in the I/O-address field of the
cations area
LEASE,
HALT DEVICE pertains to the device addressed by
the instruction.
The
o 4 6 8 31
32
The fields in the
Protection Key: Bits
used in the chain of operations at the subchannel.
63
Logout Pending (L): Bit 5, when one, indicates that
an
ing logout condition has been cleared. Bit 45, chan
nel control check, will always be one when bit 5 is
one.