Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setpsr(2) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     setpsr(2)                  DG/UX 4.30                   setpsr(2)



     NAME
          setpsr - Set the processor status register.

     SYNOPSIS
          #include <sys/m88kbcs.h>

          unsigned        setpsr  ( new_psr )
          unsigned                new_psr;

     PARAMETERS
          new_psr        specifies the bits to be set or cleared in
                         the calling process's psr.

     DESCRIPTION
          This system call sets several bits in the Processor Status
          Register of the calling process.  These bits control certain
          aspects of the execution of the process.  The bits that may
          be set are the SER, C, BO, and MXM bits.  Setting the SER
          bit turns on serial mode.  Clearing this bit allows
          concurrent operation.  Setting the C bit sets the carry bit
          to one.  Clearing this bit sets the carry to zero.  Setting
          the MXM bit disables misaligned access exceptions.  Clearing
          this bit enables misaligned access exceptions; in this mode
          a misaligned access causes the system to deliver a SIGBUS
          signal to the process.  Setting the BO bit causes the
          current byte ordering to be Litte- Endian; clearing this bit
          causes the current byte ordering to be Big-Endian.
          Regardless of the setting of the BO bit, all interfaces to
          or from the system are always in Big-Endian order.  All
          other bits are ignored.  This call returns the previous
          setting of the Processor Status Register.

     ACCESS CONTROL
          No access checking is performed.

     RETURN VALUE
          processor status register
                         The processor status register of the calling
                         process.

     EXCEPTIONS
          None.













     Licensed material--property of copyright holder(s)         Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026