SVC 10 (0A0A)

GETMAIN FREEMAIN macro with R operand - is type 1, gets LOCAL lock.

Calls module IGVVSM24, entry point IGC010.

Note:
  1. SVC 10 cannot be used to GETMAIN or FREEMAIN storage whose address is greater than 16 megabytes.
  2. The GETMAIN/FREEMAIN interface provided by SVC 10 can be called in either 24-bit or 31-bit addressing mode. Storage area addresses and lengths are treated as 24-bit addresses and values. If the caller is in 31-bit addressing mode, and the caller passes a 31-bit address, the address is treated as a 24-bit address with the high-order byte of the address ignored.
GTF data is:
R15
No applicable data.
R0
Number of the subpool requested in the high-order byte, and the length of the area requested in bytes 1-3. (A zero length is required for a subpool FREEMAIN).
R1
Any negative value if the request is for a GETMAIN. Address of the storage to be freed if the request is for a FREEMAIN. Zero if the request is for a FREEMAIN of an entire subpool.
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