SY20-0884-3_Data_Areas_and_Control_Block_Logic_Update_Aug79.pdf
Page22(22 of 63)
Page of SY20-0884-3 As Updated Aug. 1, 1979 by TNL SN25-0497 PSA PSA is the primary contr.ol block. It controls CP and virtual machine activity. PSA contains the normal low IPL, logout, and PSW information; the processor model, type, and features; and BALR and FREE areas. PSA also contains monitor and trace data and the needed linkages to virtual machines, real devices, and spool files. Note: All fields reside in real PSA unless otherwise specified. Fields residing in absolute PSA are specifically identified. For uniprocessor operation, real PSA equals absolute PSA (or 0). If the system was running in AP mode when a catastrophic error occurred, the Attached Processor will no longer be running. System recovery is in uniprocessor mode and the real PSA will no longer be zero. Page 0, Machine Usage o IPLPSW IPLCCW1 10 IPLCCW2 EXOPSW 20 SVCOPSW PROPSW 30 MCOPSW IOOPSW 40 CSW CAW I Q.UANTUMR 50 TIMER I QUANTUM EXNPSW 60 SVCNPSW PRNPS W 70 MCNPS W IONPSW 80 CPU LOG 100 FXDLOG 160 FPRLOG 180 GPRLOG 1CO CRLOG 200 TEMPSAVE 240 BALRSAVE 280 FREESAVE 2COI FREEWORK 1-------------------------------------- 2FO DATE TODATE 300 STARTIME CPUID 310 IDLEWAIT PAGEWAIT 320 IONTWAIT PROBTIME 330 RUNPSW IRUNUSER IDSPLPSW --------------------------------------i 340 RUNCRO IRUNCR1 ICPSTAT ICPRESTRTI 350 PGREAD IPGWRITE PGWAITIM I 360 IIIIPGWAITPGIIIIIIIIPSASVCCT IP*1 tP*21 , , -, 370lCPID ICPABEND IP*3 IP*4 I ASYSVM I . 380lARSPPR IARSPPU IARSPRD I ARIOPU I 390lARIOPR IARIORD IP*S IP*6 IARSPAC t 3AO I AVMREAL I ASYSABND IASYSLC I ASYSOP I 3BO I AR IOCT !ARIOCH !ARlOCU IARIODV ! I I 3COIARIOCC IARIOUC ,ARlODC ,ACORETBL, I I 3DOIAPAGCP ICPCREGO ICPCREG6 ,CPCREG8 I I , 3EO TIMEDISP IASVCLIST IAVMALlST \ LASTUSERI I 3FO PAGECUR IMONNEXT I PAGEND \PAGENXT I I 400 TRACEFLG ITTSEGCNT IP*7 I P*8 IPSARSV1 I I 410 ALOKRF IALOKSY IPSARECPS 11111I1I11 '1/1111111 420 11111111111//I/PSARSV1511//II/I/I/III/1 430 INSTWRD1 IINSTWRD2 IINSTWRD3 I 440 \ Constants Pool I 4DO \ APTRLK INOADD IX40FFS I ,INSTWRD41 I I I \XRIGHT241 1------------------------------------ I IAFRET I 4EO, XPAGNUM !AFREE 1 ----------------------------------- I I X2048BNDI 4FO I AQCNWT IADSPCH IAPTRAN 1------------------- 5001 I 540 I i 5801 DUMPSAVE SIGSAVE LOKSAVE I I section 1. CP Data Areas and Control Blocks 69
PSA r- 5COI 1 6001 1----- 6401 Aug. 1 .. 1979 MFASAVE SiTHSAVE LOCKSAV 1------------------------------_·----- 6501 SVCREGS 660 PREFIXA 1 PREFIXBI PSACPXBPIIIRESVD//l --------------------------------------1 670 WAITSTRT iAITEND 1 -----------------------------------------1 680 PiTPAGESIACTIVTRQI EMSPEND 1 EMSREC I --------------------------------------1 690 XCPEND IP*7IP*8 IP*91 APSTATUS 1 ---------------------------1 6AO AMCHAREAISHRLKCNTI PROBSTRT , Hexadecimal Field Displacement Name l1.schilliE Usage o IPLPSi DS 1D 8 8 C 10 14 10 18 20 28 30 38 40 48 4C 50 54 58 60 68 70 78 ORG RSRTNPSi DS RSRTOPSi OS IPLCCi1 OS ORG PSARSV3 DS TRACSTRT DS TRACEND DS TRACCURR DS IPLCCi2 DS EXOPSi OS SVCOPSW DS PROPSW OS MCOPSW DS IOOPSW DS CSW DS CAW DS QUANTUMR DS TIMER OS QUANTUM DS EXNPSi OS SVCNPSW OS PRNPSi OS MCNPSi DS IONPSW OS IPLPSW 1D 1D 10 IPLCCW1 1F 1F 1F 1F 1D 10 10 10 10 10 1D 1F 1F 1F 1F 10 1D 10 10 10 .------------------- I 6BOI CHGREGS IRUN370E IRESERVED/I , 1 6COI UNSHRVM IP*10IP*111/////RESERVED//II/1 I I 6DOI STACKVM IUNSHRVM2 IADMKCPE IRESERVED/I 1 , 6EOI//I//II//I/RESERVED (cont) 1//////11/1/' 1 1 6FOI ALOKUM IRESERVE I ALOKSP I AEXTSP 1 I , 7001 ATMRSN 1/111/1/1/IRESERVED///IIIIIII' I 1 7101 MONREGS I 1 I I 7501 , LOKSAVE2 Field Description, Contents .. Meaning IPL start PSi Restart new PSW Restart old PSi IPL CCW Reserved for IBM use Address of start of trace table. Note that TRACSTRT is in absolute PSA Address of end of trace table. Note that TRACEND is in absolute PSA Address of next available trace table entry. Note that TRACCURR is in absolute PSA IPL CCi External old PSi SVC old PSi Program old PSi Machine check old PSi I/O old PSi Channel status word Channel address word Interval timer value at last interrupt 13-microsecond interval timer Interval timer value at last dispatch External new PSi SVC new PSi Program new PSi Machine check new PSW I/O new PSi 70 IBM VM/370 Data Areas and Control Block Logic
Page of SY20-0884-3 As Updated Aug. 1, 1979 by TNL SN25-0497 PSA PSA is the primary contr.ol block. It controls CP and virtual machine activity. PSA contains the normal low IPL, logout, and PSW information; the processor model, type, and features; and BALR and FREE areas. PSA also contains monitor and trace data and the needed linkages to virtual machines, real devices, and spool files. Note: All fields reside in real PSA unless otherwise specified. Fields residing in absolute PSA are specifically identified. For uniprocessor operation, real PSA equals absolute PSA (or 0). If the system was running in AP mode when a catastrophic error occurred, the Attached Processor will no longer be running. System recovery is in uniprocessor mode and the real PSA will no longer be zero. Page 0, Machine Usage o IPLPSW IPLCCW1 10 IPLCCW2 EXOPSW 20 SVCOPSW PROPSW 30 MCOPSW IOOPSW 40 CSW CAW I Q.UANTUMR 50 TIMER I QUANTUM EXNPSW 60 SVCNPSW PRNPS W 70 MCNPS W IONPSW 80 CPU LOG 100 FXDLOG 160 FPRLOG 180 GPRLOG 1CO CRLOG 200 TEMPSAVE 240 BALRSAVE 280 FREESAVE 2COI FREEWORK 1-------------------------------------- 2FO DATE TODATE 300 STARTIME CPUID 310 IDLEWAIT PAGEWAIT 320 IONTWAIT PROBTIME 330 RUNPSW IRUNUSER IDSPLPSW --------------------------------------i 340 RUNCRO IRUNCR1 ICPSTAT ICPRESTRTI 350 PGREAD IPGWRITE PGWAITIM I 360 IIIIPGWAITPGIIIIIIIIPSASVCCT IP*1 tP*21 , , -, 370lCPID ICPABEND IP*3 IP*4 I ASYSVM I . 380lARSPPR IARSPPU IARSPRD I ARIOPU I 390lARIOPR IARIORD IP*S IP*6 IARSPAC t 3AO I AVMREAL I ASYSABND IASYSLC I ASYSOP I 3BO I AR IOCT !ARIOCH !ARlOCU IARIODV ! I I 3COIARIOCC IARIOUC ,ARlODC ,ACORETBL, I I 3DOIAPAGCP ICPCREGO ICPCREG6 ,CPCREG8 I I , 3EO TIMEDISP IASVCLIST IAVMALlST \ LASTUSERI I 3FO PAGECUR IMONNEXT I PAGEND \PAGENXT I I 400 TRACEFLG ITTSEGCNT IP*7 I P*8 IPSARSV1 I I 410 ALOKRF IALOKSY IPSARECPS 11111I1I11 '1/1111111 420 11111111111//I/PSARSV1511//II/I/I/III/1 430 INSTWRD1 IINSTWRD2 IINSTWRD3 I 440 \ Constants Pool I 4DO \ APTRLK INOADD IX40FFS I ,INSTWRD41 I I I \XRIGHT241 1------------------------------------ I IAFRET I 4EO, XPAGNUM !AFREE 1 ----------------------------------- I I X2048BNDI 4FO I AQCNWT IADSPCH IAPTRAN 1------------------- 5001 I 540 I i 5801 DUMPSAVE SIGSAVE LOKSAVE I I section 1. CP Data Areas and Control Blocks 69
PSA r- 5COI 1 6001 1----- 6401 Aug. 1 .. 1979 MFASAVE SiTHSAVE LOCKSAV 1------------------------------_·----- 6501 SVCREGS 660 PREFIXA 1 PREFIXBI PSACPXBPIIIRESVD//l --------------------------------------1 670 WAITSTRT iAITEND 1 -----------------------------------------1 680 PiTPAGESIACTIVTRQI EMSPEND 1 EMSREC I --------------------------------------1 690 XCPEND IP*7IP*8 IP*91 APSTATUS 1 ---------------------------1 6AO AMCHAREAISHRLKCNTI PROBSTRT , Hexadecimal Field Displacement Name l1.schilliE Usage o IPLPSi DS 1D 8 8 C 10 14 10 18 20 28 30 38 40 48 4C 50 54 58 60 68 70 78 ORG RSRTNPSi DS RSRTOPSi OS IPLCCi1 OS ORG PSARSV3 DS TRACSTRT DS TRACEND DS TRACCURR DS IPLCCi2 DS EXOPSi OS SVCOPSW DS PROPSW OS MCOPSW DS IOOPSW DS CSW DS CAW DS QUANTUMR DS TIMER OS QUANTUM DS EXNPSi OS SVCNPSW OS PRNPSi OS MCNPSi DS IONPSW OS IPLPSW 1D 1D 10 IPLCCW1 1F 1F 1F 1F 1D 10 10 10 10 10 1D 1F 1F 1F 1F 10 1D 10 10 10 .------------------- I 6BOI CHGREGS IRUN370E IRESERVED/I , 1 6COI UNSHRVM IP*10IP*111/////RESERVED//II/1 I I 6DOI STACKVM IUNSHRVM2 IADMKCPE IRESERVED/I 1 , 6EOI//I//II//I/RESERVED (cont) 1//////11/1/' 1 1 6FOI ALOKUM IRESERVE I ALOKSP I AEXTSP 1 I , 7001 ATMRSN 1/111/1/1/IRESERVED///IIIIIII' I 1 7101 MONREGS I 1 I I 7501 , LOKSAVE2 Field Description, Contents .. Meaning IPL start PSi Restart new PSW Restart old PSi IPL CCW Reserved for IBM use Address of start of trace table. Note that TRACSTRT is in absolute PSA Address of end of trace table. Note that TRACEND is in absolute PSA Address of next available trace table entry. Note that TRACCURR is in absolute PSA IPL CCi External old PSi SVC old PSi Program old PSi Machine check old PSi I/O old PSi Channel status word Channel address word Interval timer value at last interrupt 13-microsecond interval timer Interval timer value at last dispatch External new PSi SVC new PSi Program new PSi Machine check new PSW I/O new PSi 70 IBM VM/370 Data Areas and Control Block Logic
SY20-0884-3_Data_Areas_and_Control_Block_Logic_Update_Aug79.pdf
Page20(20 of 63)
Aug. 1r 1979 LOCKBLOK 1QfKBLOK: USERID LOCK CONTROL LOCKBLOK is used to synchronize execution for sections of nonreenterable code. Locked users are returned to the CPEXBLOK queue when the function being executed completes or no longer requires nonreenterable resources. LOCKBLOKs are queued off DMKSYSLB. Hexadecimal Displacement o 4 8 o 8 Field Name LOCK NEXT LOCK NEXT DS LOCKQUE DS LOCKNAME DS LOCKSIZE EQU 1F 1F 1D LOCKNAME LOCKQUE Field Description, Contents r Meaning Pointer to the next lock control block Pointer to CPEXBLOK queue The name being locked (*-LOCKBLOK)/8 LOCKBLOK size in doublewords (X'02') Section 1. CP Data Areas and Control Blocks 33
Page of SY20-0884-3 As Updated Aug. 1, 1979 by TNL SN25-0497 MCHAREA MCHAREA provides CP with statistical data that processor, to its buffers, to processor storage recovery of VM/370. relates to malfunctions for damage assessment, r- 0 , MCHDAMLN MCHPROCA 1- MCHREC , , , 8 I MCHCPEX L*1 I//////MCHRESEV//////I I 10 M*1 I M*2 I M*3 M*4 M*5 I M*6 I M*7 I M*8 I I 18 MCHLSUM 1 40 N*1 1- N*2 I N*3 f N*4 N*5 N*6 I N*7 I N*8 48 MCHFSAR MCHFSAV 50 MCHFSEAV MCHPDARI Hexadecimal Field of the and to Displacement Name Field Description, Contents, Meaning ------------ -------------------------------------- 0 MCHDAMGE DS OH Damage assessment area 0 MCHDAMLN DS 1H Length of damage assessment area 2 MCHPROCA DS XL2 Processor address 4 MCHREC DS 1F Machine check record address 8 MCHCPEX DS 1F Machine check CPEXBLOK address C MCHMODEL DS 1X L*1 Model number for the machine Bit§ defined ill MCH!llmEL MOD4341 EQU x' 18' ID number for the 4341 machine MOD4331 EQU X' 18' ID number for the 4331 machine MOD3033 EQU X t 14' ID number for the 3033 processor MOD3032 EQU X' 14' ID number for the 3032 processor MOD3031 EQU X' 14' ID number for the 3031 processor MODEL168 EQU X' 10' ID number for the 168 machine MODEL165 EQU X t 10' ID number for the 165 machine MODEL158 EQU X'OC' ID number for the 158 machine MODEL155 EQU X'OC' ID number for the 155 machine MODEL148 EQU X'08' ID number for the 148 machine MODEL 145 EQU X'08' ID number for the 145 machine MODEL 138 EQU X'04' ID number for the 138 machine MODEL135 EQU X'04' ID number for the 135 machine NOMODEL EQU X'OO' No support for machine D MCHRESEV DS 3X Reserved for IBM use 10 MCHDAMFL DS OBL8 Damage assessment data 10 MCHFLAGO DS 1X M*1 System status Bits de!i:ned ill MCHFLAGO MCHOHDWR EQU X'SQI- Hardware recovery MCHOSFTR EQU X'40' Software recovery MCHOUSAD EQU X'20' User abnormally terminated MCH1GERR EQU X' 10' Channel inoperative MCHOTERM EQU X'08' Operating system termination MCHOQUIT EQU X' 04' Quiet mode in effect 34 IBM VM/370 Data Areas and Control Block Logic real the
SY20-0884-3_Data_Areas_and_Control_Block_Logic_Update_Aug79.pdf
Page24(24 of 63)
Hexadecimal Displacement ------------ 348 348 349 34A 3lfB 34C 350 354 358 360 368 36C 36E 370 370 374 378 378 37A 37C 380 384 388 38C 390 394 398 39A Field Name CPSTAT DS ORG CPSTATUS DS Bits defined CPWAIT EQU CPRUN EQU CPEX EQU CPFVRUN EQU CPSUPER EQU XTNDLOCK DC CPSTAT2 DC gefined CPMICAVL EQU CPMICON EQU CPSHRLK EQU CPASTAVL EQU CPASTON EQU CPSTAT3 DS deli!led CPT IDLE EQU CPTPAGE EQU CPTIONT EQU CPRESTRT DS PGREAD DS PGWRITE DS PGWAITIM DS PGWAITPG DS PSASVCCT DS PAGELOAD DS PAGERATE DS PSENDCLR DS CPID DS CPABEND DS PSTARTSV DS SYSIPLDV DS PGSRATIO DC ASYSVM DC ARSPPR DC ARSPPU DC ARSPRD DC ARIOPU DC ARIOPR DC ARIORD DC IPUADDR DS PSAMSS DS 1F CPSTAT 1X in CP2TATUS X'80' X'40' X'20' X'10' X'08' 1X 1X 111 CP21ATl X'80' X'40' X'20' X'08' X'04' 1X in X'80' X'40' X'20' 1F 1F 1F 1D 1D 1F 1H 1H OF 1F 1F OF P*1 P*2 1H P*3 H'O' P*4 V (DMKSYSVM) v (DMKRSPPR) V (DMKRSPPU) V (DMKRSPRD) v (DMKRIOPU) v (DMKRIOPR) v (DMKRIORD) 1H P*5 1H P*6 Bits dei!!!ed in PSAMSS MSSPRES EQU --X'80-'-- Aug. 1, 1979 Field Description, Contents, Meaning CP running status CP running status CP in wait state CP running user in RUNUSER CP executing stacked request Reserved for IBM use Processor is executing in supervisor state PSA System extending free storage if it is equal to X'FP'. Note that XTNDLOCK is in absolute PSA. Flag byte Virtual machine assist available on processoc Virtual machine assist is on for system CP processing shared named system page CP assist available on processor CP assist is on for system wait time accounting flag Timer contains idle time Timer contains page wait time Timer contains I/O wait time Restart address if external interrupt marks page invalid Total number of page reads Total number of page writes Time spent in page wait, multiplied by numbec of pages waiting Reserved for IBM use Total number of user SVCs Page wait percent, last measurement Paging rate, pages per second Note that PAGERATE is in absolute PSA. End of area cleared by DMKCPINT CP running identifier. Note that CPID is in absolute PSA. CP abend code start of save/restored code Device address of system IPL device Page steals/total replenished Address of system VMBLOK Address of system printer file chain. Address of system punch file chain. Address of system reader file chain. Address of system punch table. Address of system printer table. Address of system reader table. Instruction processing address Address of MSS volume The MSS is online and the MSS communicator has been initialized section 1. CP Data Areas and Control Blocks 73
Page of SY20-0884-3 As Updated Aug. lr 1979 by TNL SN25-0497 PSA Hexadecimal Field Displacement Name 39C 3AO 3A4 3A8 3AC 380 3B4 3B8 3BC 3CO 3C4 3C8 3CC 3DO 3D4 3D8 3DC 3EO 3E4 3E8 3EC 3FO 3F4 3F8 3FC 400 ARSPAC DC AVMREAL DC ASYSABND DC ASYSLC DC ASYSOP DC ARIOCT DC ARIOCH DC ARIOCU DC ARIODV DC ARIOCC DC ARIoue DC ARIODC DC ACORETBL DC APAGCP DC CPCREGO DC CPCREG6 DC CPCREG8 DC TIMEDISP DS ASVCLIST DC AVMALIST DC LASTUSER DC PAGECUR DS MONNEXT DS PAGEND DS PAGENXT DS TRACEFLG DS v (DMKRSPAC) A (0) A (0) V (DMKSYSLC) V (DMKSYSOP) V (DMKRIOCT) V (DMKRIOCH) V CD MKRIOCU) V (DMKRIODV) V (DMKRIOCC) V (DMKRIOUC) V (DMKRIODC) V (DMKSYSCS) A(X'FFFFFF') X'808008CO' F'O' F'O' IF V (DMKSVCNS) V (DMKPRVMA) V (DMKSYSVM) IF IF IF IF IF Field Descriptionr Contentsr Meaning Address of system accounting chain VMBLOK address of virtual=real user. Note that AVMREAL is maintained in both PSAs Address of system abend printer Address of SYSLOCS information Address of system operator VMBLOK Address of real channel index table Address of first ReHBLOK -Address of first RCUBLOK Address of first RDEVBLOK Address of count of real system channels Address of count of real system control units Address of count of real system devices Address of system CORTABLE Address of first pageable program CP architecture control and external mask CP assist and virtual machine assist mask MONITOR CALL enable mask Timer displacement for charge Address of CP assist pointer list Address of expanded virtual machine assist pointer list Last user to be dispatched Current monitor buffer page address. Note that PAGECUR is in absolute PSA. Next available address in monitor buffer. Note that MONNEXT is in absolute PSA. Last address in current monitor buffer page. Note that PAGEND is in absolute PSA. Alternate monitor buffer page address. Note that PAGENXT is in absolute PSA. Trace table flags ORG TRACEFLG 400 401 402 404 408 40A 40C TRACFLGl DS lX Bii2 defined TRACO 1 EQU TRAC02 EQU TRAC03 EQU TRAC04 EQU TRAC05 EQU TRAC67 EQU TRAC08 EQU TRAC09 EQU TRACFLG2 DS Bii2 TRACOA EQU TRACOC EQU TRACOD EQU TRACBEF EQU TRAC10 EQU TRACll EQU TRAC12 EQU TRAC13 EQU TRACFLG3 DS TTSEGCNT DS CSADDR DC PSARSV DS PSARSV1 DS in TRACFLGl --XIsO-'-- X'40' X'20' l' 10' X'08' 1'04' 1'02' X'Ol' lX in TRACFLG2 --X'80-'-- X'40' X'20' X' 10' X'08' X'04' X' 02' X'Ol' lH IF H' 0 ' H 1F Trace table flag External interrupt tracing on SVC interrupt tracing on Program interrupt tracing on Machine check tracing on I/O interrupt tracing on FREE/FRET call tracing on Enter dispatch tracing on Queue drop tracing on Trace table flag Run user tracing on Unstack I/O interrupt tracing on virtual CSW stored tracing on SIO r TIO r and HDV tracing on Unstack IOBLOK or TRQBLOK tracing on Trace BTU activity for 370x NCP Lock spin tracing active Signal processor tracing active Reserved for IBM use Count of total page/swap tables in system. Note that TTSEGCNT is in absolute PSA. P*7 Channel set address P*8 Reserved for IBM use Reserved for IBM use 74 IBM VM/370 Data Areas and Control Block Logic