setpsr(2) SDK R4.11 setpsr(2)
NAME
setpsr - set the processor status register (88K Only)
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,
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. 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)