MIPSFPU(2-BSD) RISC/os Reference Manual MIPSFPU(2-BSD)
NAME
mipsfpu - enabling and dissabling the floating-point unit
SYNOPSIS
int
mipsfpu(x)
int x;
DESCRIPTION
This system call is used to enable and disable the
floating-point unit. An non-zero argument enables and a zero
argument disables the floating-point unit. When disabled
the system emulates all instructions in software. This can
only be executed by the super-user.
ERRORS
mipsfpu fails when the following occurs:
EPERM The caller is not the super-user.
WARNING
If you disable a floating-point unit which produces impre-
cise exceptions (the R2360) just as a program using the
floating-point unit is handling a signal which is trying to
retrieve the floating-point instruction causing the signal
based on the floating-point unit's implementation revision
register that program will fail to get the floating-point
instruction that caused the signal. This is because the
implementation revision register changed between the time
the instruction causing the signal was executed and the time
signal handler handled it.
Printed 1/15/91 Page 1