When a store access is prohibited because of pro
tection, the contents of the protected location re
main unchanged.On fetching, the protected informa
tion is not loaded into an addressable register,
moved to another storage location, or provided to anI/O device.
The protection system is always active, regardless
of whether theCPU is in the problem or supervisor
state and regardless of the type ofCPU instruction
or channel command word being executed.
Accesses Protected
All main-storage accesses to locations that areex plicitly designated by the program and that are used
by theCPU or channel to store or fetch information
are subject to protection.
Protection is notappHed to accesses that are im
plicitly made by theCPU or channel for such se
quences as interruptions, updating the interval timer,
logout, dynamic address translation, fetching the
CAW during execution of anI/O instruction, storing
theCSW by an I/O instruction or interruption, stor ing channel identification during execution of STORE CHANNEL ID, and the initial-pro gram
loading and store-status functions. Similarly, protec
tion does not apply to accesses initiated via the sys
tem console for entering or displaying information.
However, when the program explicitly designates
these locations, they are subject to protection.
Monitoring
The monitoring facility provides the capability for
passing control to a monitoring program when se
lectedindicators are reached in the monitored pro
gram. The indicators areMONITOR CALL instruc
tions implanted in the monitored program. When
executed, these instructions cause a program inter
ruption for monitoring to take place, provided an
interruption is allowed for the monitor class speci
fied by the instruction. Along with the interruption,
the monitor class number and a monitor code are
stored for subsequent use by the monitoring pro
gram.
The monitoring facility includesthe instruction MONITOR CALL, which designates one of 16
monitoring classes, together with a set of 16 monitor
masks in a control register.One mask bit is associat
ed with each class. The execution of the instruction
causes a program interruption when the monitor
mask bit for the class specified in the instruction is
one.I The monitoring facmty is available in both the BC
and EC modes.
The monitor-mask bits are in bit positions 16-31
of control register 8.
Control Register 8:
Monitor Masks
o 16
The mask bits, 16-31, correspond to monitor
classes0-15, respectively. Any number of monitor
mask bits may be on at anyone time; together they
specify the classes of monitor events that are moni
tored at that time. The mask bits are initialized to
zero.
31
When aMONITOR CALL instruction is inter
preted forexecetion and the corresponding monitor
mask bit is one, a program interruption for monitor
ing occurs. The cause of the interruption is identified
by setting bit 9 of the interruption code to one, and
by the information placed at locations 148-149 and
156-159 of main storage. The format of the informa
tion placed at locations 148-149 and 156-159 is the
same in BC and EC modes and is as follows:
Locations 148-149:
Monitor00000000 Class No.
o 8
Locations 156-159:I L_o_o_o_o __ _________ M __ on_i_to_r_C_o_de __________ o 8 31
The contents of bit positions 8-15 ofMONITOR CALL are placed at location 149 and constitute the
monitor class number. The address specified by the
Bl and Dl fields of the instruction forms the monitor
code, which is placed at locations 157-159. Zeros
are placed at locations 148 and 156.
Program..;Event Recording
The purpose of the program-event-recording(PER) facility is to assist in debugging programs. It permits
the program to be alerted to the following events:• Successful execution of a branch instruction. • Alteration of the contents of designated general
registers.• Fetching of an instruction from designated
main-storage locations.• Alteration of the contents of designated main
storage locations.
The program has control over the conditions that
are consideredeventf- recording purposes and
can specify selectively one or more events to be
monitored. The information concerning a program
System Control 39
tection, the contents of the protected location re
main unchanged.
tion is not loaded into an addressable register,
moved to another storage location, or provided to an
The protection system is always active, regardless
of whether the
state and regardless of the type of
or channel command word being executed.
Accesses Protected
All main-storage accesses to locations that are
by the
are subject to protection.
Protection is not
plicitly made by the
quences as interruptions, updating the interval timer,
logout, dynamic address translation, fetching the
CAW during execution of an
the
loading and store-status functions. Similarly, protec
tion does not apply to accesses initiated via the sys
tem console for entering or displaying information.
However, when the program explicitly designates
these locations, they are subject to protection.
Monitoring
The monitoring facility provides the capability for
passing control to a monitoring program when se
lected
gram. The indicators are
tions implanted in the monitored program. When
executed, these instructions cause a program inter
ruption for monitoring to take place, provided an
interruption is allowed for the monitor class speci
fied by the instruction. Along with the interruption,
the monitor class number and a monitor code are
stored for subsequent use by the monitoring pro
gram.
The monitoring facility includes
monitoring classes, together with a set of 16 monitor
masks in a control register.
ed with each class. The execution of the instruction
causes a program interruption when the monitor
mask bit for the class specified in the instruction is
one.
and EC modes.
The monitor-mask bits are in bit positions 16-31
of control register 8.
Control Register 8:
Monitor Masks
o 16
The mask bits, 16-31, correspond to monitor
classes
mask bits may be on at anyone time; together they
specify the classes of monitor events that are moni
tored at that time. The mask bits are initialized to
zero.
31
When a
preted for
mask bit is one, a program interruption for monitor
ing occurs. The cause of the interruption is identified
by setting bit 9 of the interruption code to one, and
by the information placed at locations 148-149 and
156-159 of main storage. The format of the informa
tion placed at locations 148-149 and 156-159 is the
same in BC and EC modes and is as follows:
Locations 148-149:
Monitor
o 8
Locations 156-159:
The contents of bit positions 8-15 of
monitor class number. The address specified by the
Bl and Dl fields of the instruction forms the monitor
code, which is placed at locations 157-159. Zeros
are placed at locations 148 and 156.
Program..;Event Recording
The purpose of the program-event-recording
the program to be alerted to the following events:
registers.
main-storage locations.
storage locations.
The program has control over the conditions that
are considered
can specify selectively one or more events to be
monitored. The information concerning a program
System Control 39