On Fri, 1 Jul 2011 12:38:53 -0700, Schwarz, Barry A wrote:

>If an "attached" task has terminated, there should be nothing in your 
>dump related to it.  The BR 14 in the task should branch to an 
>operating system routine to post the ECB and perform the appropriate 
>housekeeping.  The only thing in your dump should be the ECB.

The exit from an ATTACH is SVC 3.  BR 14 takes you to CVTEXIT. If the 
task was attached with the ECB= or EXTR= operands, it is not removed 
from virtual storage until a DETACH is issued.  I've never looked at a 
dump at that point in time, but I think that means that the TCB is still 
there.

>If a "linked" routine follows normal save area conventions, then in the 
>save area you passed it in R13 you should be able to find the contents 
>of R14.  This is where the BR 14 instruction should return if you 
>remembered to restore the registers before branching.

LINK is an SVC and the linked program runs under control of an SVRB.  The 
return from the linked routine also takes you to CVTEXIT, which is an SVC 3 
instruction.  The SVC will delete the SVRB and return control to the RB that 
was active when the LINK was issued.

-- 
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

Reply via email to