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

Contents
HP NonStop S-Series Server Description Manual520331-003
ix
Figures
Figure 6-15. Sequence and Encoding for Indexing in the Data Segment 6-25
Figure 6-16. Three Examples of Indexing in the Data Segment 6-27
Figure 6-17. Direct and Indirect Examples of SG Addressing 6-29
Figure 6-18. Layout of Procedure Code in a TNS Code Segment 6-31
Figure 6-19. Procedure Entry Points Are Grouped by Attribute in the PEP
Table 6-33
Figure 6-20. Procedure Data Consists of Global Areas and Stack Frame 6-35
Figure 6-21. There Are Four Data Segment Addressing Modes 6-37
Figure 6-22. PUSH and POP Instructions Add and Delete Stack Elements 6-39
Figure 6-23. Example of a Procedure Call and Exit 6-41
Figure 6-24. Sequence of Events Performed by a PCAL Instruction 6-43
Figure 6-25. Sequence of Events Performed by an EXIT Instruction 6-45
Figure 6-26. Defining and Accessing a Procedure’s Local Variables 6-47
Figure 6-27. Example of Passing Parameters to a Called Procedure 6-49
Figure 6-28. Examples of Accessing Value Parameters and Reference
Parameters 6-51
Figure 6-29. Sequence of Events for Saving a Stack Frame 6-53
Figure 6-30. Sequence of Events for Restoring a Stack Frame 6-55
Figure 6-31. Nested Calls Create a Chain of Markers on the Stack 6-57
Figure 6-32. Example of Returning a Value to the Caller of a Procedure 6-59
Figure 6-33. Example of Retrieving a Value Returned by a Called Procedure 6-61
Figure 6-34. Subprocedures Return Values Through Sublocal Data Area 6-63
Figure 6-35. Saved Copy of the Environment Register Preserves Space ID
Index 6-65
Figure 6-36. Sequence of Events for an External Procedure Call 6-67
Figure 6-37. Example of Resolving a Virtual Address in User Code Space 6-69
Figure 6-38. Accelerated Programs Files Contain Both TNS and Accelerated
Code 6-71
Figure 6-39.
Switching Modes for System Calls and Translation Assistance 6-73
Figure 6-40. Accelerated Procedure Return Requires Access to TNS
Information 6-75
Figure 6-41. Pmap Is a Cross-Reference of Code Segment Addresses 6-77
Figure 6-42. Gateway Tables Provide Privileged-Mode Transitions for Accelerated
Code 6-79
Figure 6-43. Far Jump Tables Are Needed for Calls To and From System
Code 6-81
Figure 6-44. Most TNS State Values Are Kept in RISC General-Purpose
Registers 6-83
Figure 6-45. Invoking Privilege Always Requires Taking an Exception 6-85
Figure 7-1. RISC Registers Point to Global Data, Main Stack Tip, and Return
Address 7-3