Set System Pointer from Pointer (SETSPFP)


Op Code (Hex) Operand 1 Operand 2

0032 Receiver Source pointer

Operand 1: System pointer.

Operand 2: System pointer, space pointer, data pointer, instruction pointer or label pointer.

Bound program access

Built-in number for SETSPFP is 142. SETSPFP ( source_pointer : system pointer OR data pointer OR space pointer(16) OR label pointer ) : system pointer /* receiver */

The source pointer operand corresponds to operand 2 on the SETSPFP operation. The return value corresponds to operand 1 after the function completes.

Description  This instruction returns a system pointer to the system object addressed by the supplied pointer.

If operand 2 is a system pointer, then a system pointer addressing the same object is returned in operand 1 containing the same authority as the input pointer.

If operand 2 is a space pointer or a data pointer, then a system pointer addressing the system object associated with the space addressed by operand 2 is returned in operand 1. The system object associated with machine supplied spaces used for automatic, static, activation group-based heap space and handle-based heap space storage is the process control space (PCS) object with which they are affiliated. The system object associated with a teraspace is the PCS object used by the process which contains the currently executing thread.

If operand 2 is an instruction pointer or label pointer, then a system pointer addressing the program system object that contains the instruction or label addressed by operand 2 is returned in operand 1.

If operand 2 is an unresolved system pointer or data pointer, the pointer is resolved first.

Authorization Required

Lock Enforcement

Exceptions

06 Addressing

08 Argument/Parameter

0A Authorization

10 Damage Encountered

1A Lock State

1C Machine-Dependent

20 Machine Support

22 Object Access

24 Pointer Specification

2E Resource Control Limit

32 Scalar Specification

36 Space Management

44 Protection Violation