The cause of the interruption is identi fied by the interruption code. When the
oldPSW specifies the EC mode, the
interruption code is placed at real
locations 142-143, the instruction
length codeis placed in bit positions 5
and 6 of the byte at real location 141
with the rest of the bits set tozeros, and zeros are stored at real location 140. When the old PSW specifies the BC mode, the interruption code and the ILC are placed in the old PSW. For some
causes,additional information identify
ing the reason for the interruptionis stored at real locations 144-159 in both
theEC and BC modes.
Except for PERevents, the condition
causing the interruptionis indicated by
a coded value placed in the rightmost
seven bit positions of the interruption
code.Only one condition at a time can
beindicated. Bits 0-7 of the inter
ruption code are set to zeros.
PER events are indicated by setting bit
8 of the interruption code to one. When
thisis the only condition, bits 0-7 and
9-15 are also set to zeros. When a PER
eventis indicated concurrently with
another program-interruption condition,
bit 8is one, and the coded value for
the other condition is indicated in bit
positions0-7 and 9-15. When there is a corresponding mask bit,
a program interruption can occur only
when that mask bit is one. The program
mask in thePSW controls four of the
exceptions, bit 1 in control register0 controls whether SET SYSTEM MASK causes
a special-operation exception, bits
16-31 in controlregister 8 control
interruptions due tomonitor events,
and,in the EC mode, a hierarchy of
masks control interruptions due to PER
events. When any controlling maskbit is zero, the condition is ignored; the
condition does not remain pending.
ProgrammingNotes 1. When the new PSW for a program
interruption has a PSW-format error
or causes an exception to be recognized in the process of instruction
fetching, a string of program
interruptions may occur.See the
section "Priority of Interruptions"
in this chapter for a description
of how such strings are terminated.
2.Some of the conditions indicated as
program exceptions may be recog
nized also by a channel,in which
case the exception is indicated in
the channel-status word.EXCEPTION-EXTENSION CODE When an arithmetic exception is recog
nized during execution of an interrupti
ble vector instruction, a nonzero
exception-extension code is stored inbits 0-7 of the program-interruption
code.This code is set to a nonzero
value only for arithmetic exceptions
occurring during theexecution of vector
instructions. For more details, see the
publication IBM System/370 VectorOper ations, SA22-7125. PROGRAM-INTERRUPTION CONDITIONS The following is a detailed description
of each program-interruption condition.
Addressing Exception
An addressing exception is recognized
when the CPU attempts to reference a
main-storage location that is not avail
able in the configuration. A main
storage locationis not available in the
configuration when the location is not
installed, when the storage unit is not
in the configuration, or when power is
off in the storage unit. An address
designating a storage location that is
not availablein the configuration is
referred to asinvalid. The operation is suppressed when the
address of the instruction is invalid.
Similarly, the operationis suppressed
when the address of the target instruc
tion ofEXECUTE is invalid. Also, the
unit of operationis suppressed when an
addressing exception is encountered in
accessing a table entry. The table
entries towhich the rule applies are entries for the segment table, page
table, linkage table, entry table, ASN
first table,ASN second table, authority
table, trace-table designation, trace
table-entry header, andCPU-identity byte. Addressing exceptions result in
suppression when theyare encountered
for references to the segment table and
page table, in both implicit references
for dynamic address translation and
references associated with the execution
ofLOAD REAL ADDRESS and TEST PROTECTION. Except for some specific
instructions whose executionis suppressed, the operation is terminated
for an operand address that can be
translated but designates an unavailable
location.See the figure "Summary of
Action for Addressing and Protection
Exceptions."
For termination, changes may occur only
to result fields. In this context, the
term "result field" includes the condi-Chapter 6. Interruptions 6-15
old
interruption code is placed at real
locations 142-143, the instruction
length code
and 6 of the byte at real location 141
with the rest of the bits set to
causes,
ing the reason for the interruption
the
Except for PER
causing the interruption
a coded value placed in the rightmost
seven bit positions of the interruption
code.
be
ruption code are set to zeros.
PER events are indicated by setting bit
8 of the interruption code to one. When
this
9-15 are also set to zeros. When a PER
event
another program-interruption condition,
bit 8
the other condition is indicated in bit
positions
a program interruption can occur only
when that mask bit is one. The program
mask in the
exceptions, bit 1 in control register
a special-operation exception, bits
16-31 in control
interruptions due to
and,
masks control interruptions due to PER
events. When any controlling mask
condition does not remain pending.
Programming
interruption has a PSW-format error
or causes an exception to be recog
fetching, a string of program
interruptions may occur.
section "Priority of Interruptions"
in this chapter for a description
of how such strings are terminated.
2.
program exceptions may be recog
nized also by a channel,
case the exception is indicated in
the channel-status word.
nized during execution of an interrupti
ble vector instruction, a nonzero
exception-extension code is stored in
code.
value only for arithmetic exceptions
occurring during the
instructions. For more details, see the
publication IBM System/370 Vector
of each program-interruption condition.
Addressing Exception
An addressing exception is recognized
when the CPU attempts to reference a
main-storage location that is not avail
able in the configuration. A main
storage location
configuration when the location is not
installed, when the storage unit is not
in the configuration, or when power is
off in the storage unit. An address
designating a storage location that is
not available
referred to as
address of the instruction is invalid.
Similarly, the operation
when the address of the target instruc
tion of
unit of operation
addressing exception is encountered in
accessing a table entry. The table
entries to
table, linkage table, entry table, ASN
first table,
table, trace-table designation, trace
table-entry header, and
suppression when they
for references to the segment table and
page table, in both implicit references
for dynamic address translation and
references associated with the execution
of
instructions whose execution
for an operand address that can be
translated but designates an unavailable
location.
Action for Addressing and Protection
Exceptions."
For termination, changes may occur only
to result fields. In this context, the
term "result field" includes the condi-