HP OpenVMS Systems

ask the wizard
Content starts here

Current Processor Mode?

» close window

The Question is:

Is there a system call that returns the run level of the current process
 (kernel, executive, user)?

The Answer is :

  Please review the contents of the PSL, the Processor Status Longword.
  This system register is available directly to application code.  See
  the C __PAL_RD_PS built-in, as well as the underlying PALcode call.
  In general, the current processor mode is of less interest than the
  previous mode as used within one of the the probes operation -- these
  probe operations are described in the driver documentation, and there
  are C built-in routines such as __PAL_PROBER and __PAL_PROBEW.

answer written or last revised on ( 17-DEC-2003 )

» close window