When because of machine malfunction the CPU is
unable to end an instruction, the stop key is not effect
ive, and initial program loading or system reset should
be used.
Input/output operations continue to completion
while theCPU is in the problem, wait, masked, or
stopped state. However, no newI/O operations can be
initiated while theCPU is stopped, waiting, or in the
problem state. Also, the interruption caused byI/O completion remains pending when masked off or when
theCPU is in the stopped state.
Storage ProtectionStorage protection is provided to protect the contents
of certain areas of storage from destruction caused by
erroneous storing of information during the execution
of a program. This protection is achieved by identify
ing blocks of storage with a storage key and compar
ing this key with a protection key supplied with the
data to be stored. The detection of a mismatch is a
protection exception and results in a program inter
ruption.
Area Identification
For protection purposes, main storage is divided into
blocks of 2,048 bytes, each block having an address
that is a multiple of 2,048. A four-bit storage key is
associated with each block. When data are stored in a
storage block, the storage key is compared with the
protection key. The protection key of the current psw
is used as the comparand when storing is specified by
an instruction. When storing is specified by a channel
operation, the protection key supplied to the channel
by the command address word is used as the com
parand. The keys are said to match when they are
equal or when either one is zero.
The storage key is not part of addressable storage.
The key is changed bySET STORAGE KEY and is in
spected byINSERT STORAGE KEY. The protection key in
the psw occupies bits 8-11 of that control word. The
protcction key of a channel is recorded in bits0-3 of
the channel status word, which is stored as a result of
the channel operation.
Protection Action
The storage-protection system is always active. It is
independent of the problem, supervisor, or masked
state of theCPU and of the type of instruction or I/O command being executed.
When an instruction causes a protection mismatch,
execution of the instruction is suppressed or termi
nated, and program executionis altered by a program
interruption. The protected storage location always
remains unchanged.
In general, the detection of a protected location
causes the instruction specifying this location to be
suppressed, that is to be omitted entirely. In opera
tions using multiple words or variable-length fields,
part of the operation may already have been com
pleted when the protected area is referenced. In these
operations the instruction cannot be suppressed and,
hence, is terminated.Protection mismatch due to an I/O operation causes
data transmission to be terminated in such a way that
the protected storage location remains unchanged.
The mismatch is indicated in the channel status word
stored as a result of the operation.Storage protection is optional in some models. When
protection is not installed, the protection key in the
psw and the protection key of the channels must be
zero; otherwise, a program interruption or program
checkI/O termination occurs.
Locations Protected
All main-storage locations where information is stored
in the course of an operation are subject to protection.
A location not actually used does not cause protection
action.
Locations whose addresses are generated by theCPU for updating or interruption purposes, such as the
timer, channel status word, or psw addresses, are not
protected. However, when the program specifies these
locations, they are subject to protection.
Program Status Word
The psw contains all information not contained in
storage or registers but required for proper program
execution. By storing thePSW, the program can pre
serve the detailed status of theCPU for subsequent in spection. By loading a new psw or part of a PSW, the
state of theCPU may be changed.
In certain circumstances all of the psw is .. _ .0d or
loaded; in others, only part of it. The entire psw is
stored, and a new psw is introduced when theCPU is
interrupted. The rightmost 32 bits are stored inBRANCH AND LINK. The LOAD PSW introduces a new PSW; SET PROGRAM mask introduces a new condition
code and program-mask field in the psw;SET SYSTEM MASK introduces a new system-mask field.
The psw has the following format:Program Status Word
System MaskInterrupti on Code 31 Instruction Address
32 33 34 35 36 3940 63 Status Switching 69
unable to end an instruction, the stop key is not effect
ive, and initial program loading or system reset should
be used.
Input/output operations continue to completion
while the
stopped state. However, no new
initiated while the
problem state. Also, the interruption caused by
the
Storage Protection
of certain areas of storage from destruction caused by
erroneous storing of information during the execution
of a program. This protection is achieved by identify
ing blocks of storage with a storage key and compar
ing this key with a protection key supplied with the
data to be stored. The detection of a mismatch is a
protection exception and results in a program inter
ruption.
Area Identification
For protection purposes, main storage is divided into
blocks of 2,048 bytes, each block having an address
that is a multiple of 2,048. A four-bit storage key is
associated with each block. When data are stored in a
storage block, the storage key is compared with the
protection key. The protection key of the current psw
is used as the comparand when storing is specified by
an instruction. When storing is specified by a channel
operation, the protection key supplied to the channel
by the command address word is used as the com
parand. The keys are said to match when they are
equal or when either one is zero.
The storage key is not part of addressable storage.
The key is changed by
spected by
the psw occupies bits 8-11 of that control word. The
protcction key of a channel is recorded in bits
the channel status word, which is stored as a result of
the channel operation.
Protection Action
The storage-protection system is always active. It is
independent of the problem, supervisor, or masked
state of the
When an instruction causes a protection mismatch,
execution of the instruction is suppressed or termi
nated, and program execution
interruption. The protected storage location always
remains unchanged.
In general, the detection of a protected location
causes the instruction specifying this location to be
suppressed, that is to be omitted entirely. In opera
tions using multiple words or variable-length fields,
part of the operation may already have been com
pleted when the protected area is referenced. In these
operations the instruction cannot be suppressed and,
hence, is terminated.
data transmission to be terminated in such a way that
the protected storage location remains unchanged.
The mismatch is indicated in the channel status word
stored as a result of the operation.
protection is not installed, the protection key in the
psw and the protection key of the channels must be
zero; otherwise, a program interruption or program
check
Locations Protected
All main-storage locations where information is stored
in the course of an operation are subject to protection.
A location not actually used does not cause protection
action.
Locations whose addresses are generated by the
timer, channel status word, or psw addresses, are not
protected. However, when the program specifies these
locations, they are subject to protection.
Program Status Word
The psw contains all information not contained in
storage or registers but required for proper program
execution. By storing the
serve the detailed status of the
state of the
In certain circumstances all of the psw is .
loaded; in others, only part of it. The entire psw is
stored, and a new psw is introduced when the
interrupted. The rightmost 32 bits are stored in
code and program-mask field in the psw;
The psw has the following format:
System Mask
32 33 34 35 36 39