Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setpsr(2) — DG/UX 5.4.2A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpsr(2)



setpsr(2)                        DG/UX 5.4.2                       setpsr(2)


NAME
       setpsr - set the processor status register

SYNOPSIS
       #include <sys/m88kbcs.h>

       unsigned int  setpsr (newpsr)
       unsigned int  newpsr;

   where:
       newpsr   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.

DIAGNOSTICS
       None.

SEE ALSO
       getpsr(2).












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


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