On entry to the resource manager, register contents are:
- Register
- Contents
- 0
- Does not contain any information for use by the routine.
- 1
- Address of an 8-byte field. The first 4 bytes of this 8-byte
field contain the address of the resource manager parameter list (defined
in your routine by the IHARMPL mapping macro).
If this is a dynamically
invoked resource manager, the second 4 bytes contain the address of
an 8-byte field that contains a user-supplied value on the PARAM parameter
of the RESMGR macro. If the resource manager was not dynamically
added, this 4-byte field contains a zero.
- 2-12
- Do not contain any information for use by the routine.
- 13
- Address of a standard 72-byte save area.
- 14
- Return address.
- 15
- Entry point address in the resource manager.
Your resource manager must save and restore registers 1-14, and
may use registers 15 and 0 respectively to pass a return and reason
code to the system. When the resource manager is not established
with the RESMGR macro, all return and reason codes are ignored. When
the resource manager is established with the RESMGR macro, all return
codes will be ignored except return code 8. When the return code
in register 15 is 8, the system will honor the following reason codes
in register 0:
- 1
- Indicates that the system should remove the returning resource
manager. Usage of this reason code is equivalent to issuing a RESMGR
macro with the DELETE keyword and the appropriate parameters for deleting
the returning resource manager. Note that the ECB keyword of RESMGR
is not provided by this interface.