On Tue, 5 Jul 2011 08:30:19 -0500, Donald Likens wrote: >This has all been interesting but I don't think my question has been >answered (sorry if I missed it). Some said I could get the real return >address in the save area trace but I do not think that is correct since >the calling program saves the registers and R14 points to LINK(x) or >ATTACH(x) when the calling program is called.
The calling program does not save the registers. When the processing of an RB is suspended, the PSW is stored in RBOPSW. LINK and ATTACH both cause an SVC interruption and the RB is suspended. Link creates a new RB. When that RB terminates with SVC 3, the previous RB resumes. ATTACH creates a new TCB and a new RB and returns control to the previous RB. Both TCBs are equally eligible to be dispatched. When the ATTACHed task terminates (SVC 3), task cleanup is performed. It does not "return" to the attaching task. >As for the PRB/SVRB >discussion application programs run under a PRB. Correct. Thanks to those who pointed out my error and especially to Shmuel who (I think) provided the best explanation of what happens. -- Tom Marchant ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

