gtpm1m1r | TPF V4R1 Migration Guide: 3.1 to 4.1 |
In the TPF 4.1 system, 255 SVCs are allocated for use and 32 of these are reserved for your use. In addition, a new level of support is introduced in which two SVC entries (one for IBM and one for your use) can be reserved to support a second-level structure. With this secondary or indexed structure, an additional 32,767 macros can be defined. The macro decoder table uses the same primary supervisor call (SVC) table with 256 entries, which includes pointers to secondary SVC tables. SVCs in the secondary tables are called secondary or indexed SVCs, and are specified by adding a halfword index number to the SVC instruction.
The fast-link macro decoder service is unchanged but 100 entries are reserved for your use. In addition to the 32 SVC numbers, 100 fast link entries are reserved for your use.
A new set of macros allows you to define and maintain data in the primary and secondary SVC tables.
See Defining SVCs for information about how to migrate your SVC entries.
The TPF 4.1 system supports the monitor call (MC) instruction for select macros (the SNAPC, $MONTC, and $RECVC macros) to allow transfer of control without damaging the register save area of the ECB.
Changes to SVC definition and structures are described in Macro Decoder and SVCs.
Up to 32,767 secondary SVCs and odd SVCs are now supported, and there is a new method for adding SVCs to the TPF 4.1 system. All new and existing SVCs must be added to the SVC tables using the CRESVC macro.
The CRESVC macro defines an SVC or fast-link macro to the TPF 4.1 system and adds the macro definition to the primary, indexed, or fast-link macro tables. Use the CKMAC parameter to specify the type of authorization (common block, key 0, MONTC, or restricted) required for specific macros.
The new CFISVC macro is used to access information in the macro information tables. The ISV0SV data macro maps the fields in the table entries.