setpsr(2)
NAME
setpsr − set processor status register
SYNOPSIS
#include <sys/m88kbcs.h>
unsigned int setpsr(psr)
unsigned int psr;
DESCRIPTION
The setpsr() system call sets several bits in the Processor Status Register (PSR) 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; the precise semantics of these bits are defined in the MC88100 User’s Manual and the MC88110 User’s Manual.
The parameter psr is the bitwise inclusive OR of one or more of the following values: PSR_SER, PSR_C, PSR_MXM.
Setting the SER bit (PSR_SER) turns on serial mode. Clearing this bit allow concurrent operation.
Setting the C (PSR_C) bit sets the carry bit to one; clearing this bit zeroes the carry bit.
Setting the MXM bit (PSR_MXM) 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 (see sigaction(2)).
All bits in the psr parameter except SER, C, and MXM are ignored.
RETURN VALUE
The previous value of the Processor Status Register is returned.
SEE ALSO
CX/UX Programmer’s Reference Manual