SVC 120 (0A78)

GETMAIN/ FREEMAIN macro - is type 1, gets LOCAL lock.

Calls module IGVVSM31, entry point IGC120.

Note:
  1. SVC 120 can be used to GETMAIN storage whose address is above 16 M bytes.
  2. The interface provided by this macro can be called in either 24-bit or 31-bit addressing mode. All values and addresses will be treated as 31-bit values and addresses.
GTF data is:
R15
Bytes as follows:
R0
The number of bytes of storage to be obtained or freed (Zero for a subpool FREEMAIN).
R1
The address of the area to be freed (Zero for GETMAIN requests).
Register contents on return:
R1
Address of the allocated virtual storage area if the request was for a GETMAIN.
R15
00 - Storage available if the request was for a GETMAIN; storage freed if the request was for a FREEMAIN.

04 - Storage not available if request was for a GETMAIN; storage status unchanged if request was for a FREEMAIN.