mdoc(7) police: tidy up.
This commit is contained in:
parent
51906f452e
commit
708d714ed7
@ -27,7 +27,7 @@
|
|||||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" from: npx.4,v 1.1 1993/08/06 10:58:03 cgd Exp
|
.\" $Id: npx.4,v 1.1 1993/08/06 10:58:03 cgd Exp $
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd August 28, 1993
|
.Dd August 28, 1993
|
||||||
@ -52,78 +52,98 @@ The
|
|||||||
.Nm
|
.Nm
|
||||||
driver enables the use of the system's Numeric Processing Extension
|
driver enables the use of the system's Numeric Processing Extension
|
||||||
coprocessor,
|
coprocessor,
|
||||||
if one is present. Numeric processing extensions are present in
|
if one is present.
|
||||||
|
Numeric processing extensions are present in
|
||||||
systems with
|
systems with
|
||||||
.Sy 486DX
|
.Tn 486DX
|
||||||
CPUs and in systems with
|
CPUs and in systems with
|
||||||
.Sy 387
|
.Tn 387
|
||||||
or
|
or
|
||||||
.Sy 487SX
|
.Tn 487SX
|
||||||
coprocessors. The
|
coprocessors.
|
||||||
|
The
|
||||||
.Nm
|
.Nm
|
||||||
driver is required for proper system functioning regardless
|
driver is required for proper system functioning regardless
|
||||||
of whether or not a NPX is present.
|
of whether or not a NPX is present.
|
||||||
.Pp
|
.Pp
|
||||||
If there is no NPX present in the system, the MATH_EMULATE or
|
If there is no NPX present in the system, the
|
||||||
GPL_MATH_EMULATE option must be defined in the kernel configuration
|
.Dv MATH_EMULATE
|
||||||
|
or
|
||||||
|
.Dv GPL_MATH_EMULATE
|
||||||
|
option must be defined in the kernel configuration
|
||||||
file.
|
file.
|
||||||
It will provide support for the instructions normally executed by the
|
It will provide support for the instructions normally executed by the NPX.
|
||||||
NPX.
|
|
||||||
If there is no NPX in the system and the kernel is not built with math
|
If there is no NPX in the system and the kernel is not built with math
|
||||||
emulation, the system will not boot.
|
emulation, the system will not boot.
|
||||||
.Pp
|
.Pp
|
||||||
You can choose to use a much more fully-featured math emulator (under the
|
You can choose to use a much more fully-featured math emulator (under the
|
||||||
GPL license) by including the option GPL_MATH_EMULATE in your kernel
|
GPL license) by including the
|
||||||
configuration file instead of the MATH_EMULATE option.
|
.Cd "options GPL_MATH_EMULATE"
|
||||||
|
in your kernel
|
||||||
|
configuration file instead of the
|
||||||
|
.Dv MATH_EMULATE
|
||||||
|
option.
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
.Sy GENERIC
|
.Pa GENERIC
|
||||||
kernel configuration uses the MATH_EMULATE option.
|
kernel configuration uses the
|
||||||
|
.Dv MATH_EMULATE
|
||||||
|
option.
|
||||||
.Pp
|
.Pp
|
||||||
The flags for npx0 are:
|
The flags for
|
||||||
.Bl -tag -width xxxxxxxxx -compact
|
.Pa npx0
|
||||||
|
are:
|
||||||
|
.Pp
|
||||||
|
.Bl -tag -width indent -compact
|
||||||
.It 0x01
|
.It 0x01
|
||||||
don't use the npx registers to optimize bcopy.
|
do not use the NPX registers to optimize bcopy.
|
||||||
.It 0x02
|
.It 0x02
|
||||||
don't use the npx registers to optimize bzero.
|
do not use the NPX registers to optimize bzero.
|
||||||
.It 0x04
|
.It 0x04
|
||||||
don't use the npx registers to optimize copyin or copyout.
|
do not use the NPX registers to optimize copyin or copyout.
|
||||||
.It 0x08
|
.It 0x08
|
||||||
use emulator even if hardware FPU is available.
|
use emulator even if hardware FPU is available.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
The npx registers are normally used
|
The NPX registers are normally used
|
||||||
to optimize copying and zeroing
|
to optimize copying and zeroing
|
||||||
when all of the following conditions are satisfied:
|
when all of the following conditions are satisfied:
|
||||||
|
.Pp
|
||||||
.Bl -enum -compact
|
.Bl -enum -compact
|
||||||
.It
|
.It
|
||||||
I586_CPU is an option
|
.Cd "cpu I586_CPU"
|
||||||
|
is an option
|
||||||
.It
|
.It
|
||||||
the cpu is an i586 (perhaps not a Pentium)
|
the CPU is an i586 (perhaps not a Pentium)
|
||||||
.It
|
.It
|
||||||
the probe for npx0 succeeds
|
the probe for
|
||||||
|
.Pa npx0
|
||||||
|
succeeds
|
||||||
.It
|
.It
|
||||||
INT 16 exception handling works.
|
INT 16 exception handling works.
|
||||||
.El
|
.El
|
||||||
|
.Pp
|
||||||
Then copying and zeroing
|
Then copying and zeroing
|
||||||
using the npx registers
|
using the NPX registers
|
||||||
is normally 30-100% faster.
|
is normally 30-100% faster.
|
||||||
.Pp
|
.Pp
|
||||||
The flags can be used
|
The flags can be used
|
||||||
to control cases
|
to control cases
|
||||||
where it doesn't work or is slower.
|
where it does not work or is slower.
|
||||||
Setting them at boot time
|
Setting them at boot time
|
||||||
using userconfig works correctly
|
using userconfig works correctly
|
||||||
(the optimizations are not used
|
(the optimizations are not used
|
||||||
until later in the bootstrap
|
until later in the bootstrap
|
||||||
when npx0 is attached).
|
when
|
||||||
|
.Pa npx0
|
||||||
|
is attached).
|
||||||
Flag 0x08 automatically disables the i586 optimized routines.
|
Flag 0x08 automatically disables the i586 optimized routines.
|
||||||
.Sh CAVEATS
|
.Sh CAVEATS
|
||||||
The emulator is much slower than the NPX coprocessor.
|
The emulator is much slower than the NPX coprocessor.
|
||||||
This will result in poor floating-point math performance
|
This will result in poor floating-point math performance
|
||||||
if the emulator must be used.
|
if the emulator must be used.
|
||||||
.Pp
|
.Pp
|
||||||
The non-GPL emulator does not support the whole set of npx
|
The non-GPL emulator does not support the whole set of NPX
|
||||||
instructions.
|
instructions.
|
||||||
It is sufficient for booting and configuring a system, but it cannot
|
It is sufficient for booting and configuring a system, but it cannot
|
||||||
support a system with normal workload unless care is taken to compile
|
support a system with normal workload unless care is taken to compile
|
||||||
@ -136,6 +156,8 @@ the NPX to the CPU wired properly.
|
|||||||
If this is the case, the emulator must be used if consistent system
|
If this is the case, the emulator must be used if consistent system
|
||||||
operation is desired.
|
operation is desired.
|
||||||
.Pp
|
.Pp
|
||||||
When using the default MATH_EMULATE option,
|
When using the default
|
||||||
|
.Dv MATH_EMULATE
|
||||||
|
option,
|
||||||
transcendental function instructions are not implemented.
|
transcendental function instructions are not implemented.
|
||||||
Emulation of other instructions is suspect.
|
Emulation of other instructions is suspect.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user