SVC 46 (0A2E)

TTIMER macro and STIMERM macro (TEST and CANCEL options) - is type 2, gets local and dispatcher locks.

For TTIMER macro, GTF data is:
R15
No applicable data.
R0
Pointer to 8-byte area containing the interval remaining if "MIC" is specified.
R1
Low-order byte contains code indicating the type of request and the format of the returned value.
Bytes
Contents
0-2
Reserved.
3
Flag bits, as follows:
     
0000 .... Reserved; must be zero.
.... 0... TTIMER macro present.
.... .1.. ERRET option. Routine specified by the ERRET parameter gets control on an environmental error. Register 15 contains the return code.
.... ..1. MIC option. Interval remaining is returned to the specified address in microseconds. (Bit 51 is equivalent to approximately 1 microsecond.)
.... ..0. TU option. Time remaining in the task's time interval is to be in register 0 in timer units.
.... ...1 CANCEL option. Current task's time interval is to be canceled.
R4
Points to requester's TCB.
R5
Points to the SVRB.
R7
Points to the ASCB.
R14
Contains the return address.
For STIMERM macro (TEST and CANCEL options) GTF data is:
R15
No applicable data.
R0
Pointer to a 16-byte parameter list which is formatted as follows:
Bytes
Contents
0
Flag bits, as follows:
     
000. .... Reserved; must be zero.
...1 .... TU option. Time remaining in the current task's time interval is placed in a 4 byte field supplied by the user. It is recorded in timer units.
.... 1... "ID=ALL" option.
.... .1.. ERRET option. Routine specified by the ERRET parameter gets control on an environmental error. Register 15 contains the return code.
.... ..1. MIC option. Interval remaining is returned to the specified address in microseconds. (Bit 51 is equivalent to approximately 1 microsecond.)
.... ...1 CANCEL option. Specified time interval is to be cancelled.
1-2
Reserved; must be zero.
3
Flag bits as follows: Level number of the parameter list. Must be X'01'
4-7
Pointer to 4-byte area containing the TQE ID.
8-11
Pointer to area in which interval remaining will be stored. If "TU" is specified, the area must be 4 bytes. If "MIC" is specified, the area must be 8 bytes.
12-16
Reserved; must be zero.
R1
Flag bytes formatted as follows:
Bytes
Contents
0-2
Reserved; must be zero.
3
Flag bits, as follows:
     
0000 .... Reserved; must be zero.
.... 1... STIMERM macro present.
.... .000 Reserved; must be zero.
R4
Points to the requester's TCB.
R5
Points to the SVRB.
R7
Points to the ASCB.
R14
Contains the return address.