HPlogo PA-RISC Procedure Calling Conventions Reference Manual > Chapter 6 Millicode Calls

6.6 Nested Millicode Calls

MPE documents

Complete PDF
Table of Contents

Millicode routines may call other millicode routines, but (at present) cannot call other standard user-defined routines. In order for nested millicode calls to occur, however, the millicaller must allocate a stack frame and save the MRP in the current RP word (SP-20) and sr0 in the static link word (SP-16) of the frame marker area of the new frame. The layout of a frame generated for a nested millicode call is shown in Figure 6-2.

Figure 6-2 Millicode Stack Storage Layout

[Figure 6-2]




6.5 Making a Millicode Call


Chapter 7 Stack Unwinding