NonStop S-Series Server Description Manual (G06.27+)

Contents
HP NonStop S-Series Server Description Manual520331-004
iv
6. TNS Execution Modes (continued)
6. TNS Execution Modes (continued)
Data Segment Addressing Modes 6-36
Operations at the Procedure’s Top-of-Stack 6-38
Overview of Procedure Call and Exit 6-40
Actions of the PCAL Instruction 6-42
Actions of the EXIT Instruction 6-44
A Procedure’s Local Variables 6-46
Passing Parameters to a Called Procedure 6-48
Accessing Parameters in the Called Procedure 6-50
Saving the Stack Frame on a Call 6-52
Restoring a Stack Frame on Return From a Call 6-54
Multiple Markers for Nested Calls 6-56
Returning a Value to the Caller 6-58
Retrieving a Returned Value 6-60
Subprocedure Calls 6-62
Calling External Procedures 6-64
Example of an External Procedure Call 6-66
Resolving Virtual Addresses for External Calls 6-68
An Accelerated Program File in Virtual Memory 6-70
Execution Mode Switches 6-72
Procedure Return in Accelerated Code 6-74
Mapping Return Addresses and Debug Points 6-76
Gateway Tables 6-78
Far Jump Tables 6-80
Maintaining TNS State Values 6-82
Invoking Privilege for CALLABLE Procedures 6-84
7. Native Execution Mode
Native Mode Uses RISC Register Conventions 7-2
RISC Stack Frames 7-4
Procedure Name Spaces for the System Library 7-6
Example of TNS Call to a Native Library Procedure 7-8
Invoking Privilege Requires Taking an Exception 7-10
Stack Switching for Native Privilege Transition 7-12
Example of Enter_Priv Transition 7-14
Far Jumps and Far Gateways Are Needed for SCr 7-16