> Date:    Sun, 4 Jul 2010 22:30:01 -0500
> From:    Paul Gilmartin <[email protected]>
> Subject: Re: ECB parameter on attach
>
> On Sun, 4 Jul 2010 19:13:20 -0400, Joe Reichman wrote:
>
> > >The system posts it when the Subtask does a BR R14
> > >
> ... and I always thought it was when the subtask issues SVC 3.
>
> (Or do I have the number wrong?)
>
> -- gil

You have it just about right.  When the sole remaining RB for the TCB
issues SVC-3 (EXIT), End of Task processing begins.  This causes RTM
to be driven which, in turn, causes all of the End of Task cleanup of
the task related resources.  As just about its last gasp, End of Task
processing causes the End of Task ECB to be POSTed (this is the ECB
which was specifed on the ATTACH(X) invocation which caused the TCB to
be created).

When the ATTACHed module is initially entered, GPR 14 contains the
address to which it is to branch upon its completion, i.e., this is
the "Return Address".  While not part of the documented programming
interface, this address is generally the address of an SVC 3
instruction contained in the CVT (field CVTEXIT).

Bob Raicer

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