Accelerator Manual (G06.24+, H06.03+)
Preparing Your Program for TNS/R Systems
Accelerator Manual—527303-002
2-6
Reserved Instructions
specifies an entry point into the application program where execution is to begin if
a trap occurs. You do not need to change ARMTRAP procedures with parameters
of (-1,-1). These parameters cause programs to abend on traps. Trap handlers are
usually small enough in both size and number to check visually.
Required Change
•
Change your programs to comply with the preceding restrictions.
Reserved Instructions
Two TNS instructions previously reserved for the operating system have changed from
nonprivileged to privileged instructions on TNS/R systems:
TOTQ - Test the Out Queue
RCPU - Read Cpu Number
These instructions continue to be nonprivileged instructions on existing TNS systems;
HP reserves the right to change them to privileged instructions.
Detection Guideline
•
Programs that use these instructions in the nonprivileged environment fail with an
Instruction Failure exception.
Required Change
•
Remove these instructions from nonprivileged programs.
Passing the Addresses of P-Relative Objects
Do not pass the address of a P-relative object to other routines in programs larger than
one TNS code segment. Programs access the wrong object or an address fault occurs
if you pass a:
•
16-bit address on TNS systems
•
16-bit address on TNS/R systems
•
32-bit extended address on TNS systems
However, if you pass a 32-bit extended address on TNS/R systems, programs access
the specified object and continue execution. This is a program error that TNS/R
systems do not detect.
Do not write programs that rely on this feature. There is one supported exception to
this restriction: you can pass user code addresses into user library, system code, or
system library routines.