NPX(4)
π NPX(4) β Numeric Processing Extension coprocessor π
okay so bestie, this page is from the i386 Kernel Interfaces Manual, and we're talking about npx, the Numeric Processing Extension coprocessor β¨
π NAME π
npx β Numeric Processing Extension coprocessor π
β¨ SYNOPSIS β¨
device npx
hint.npx.0.at="nexus"
hint.npx.0.port="0x0F0"
hint.npx.0.flags="0x0"
hint.npx.0.irq="13"
πΈ DESCRIPTION πΈ
The npx driver is the glow-up that lets your system actually use its Numeric Processing Extension coprocessor π§. Numeric processing extensions are present in systems with 486DX CPUs and in systems with 387 or 487SX coprocessors β periodt π
. The npx driver is required for proper system functioning; if there is no NPX in the system, the system will not boot. Not me being dramatic, it's literally in the man page π.
The flags for npx0 are:
0x01β do not use the NPX registers to optimizebcopyπ¦0x02β do not use the NPX registers to optimizebzeroπ0x04β do not use the NPX registers to optimizecopyinorcopyoutπ
The NPX registers are normally used to optimize copying and zeroing when all of the following conditions are satisfied:
cpu I586_CPUis an option β- the CPU is an i586 (perhaps not a Pentium) π
- the probe for
npx0succeeds π₯ INT 16exception handling works β
Then copying and zeroing using the NPX registers is normally 30-100% faster β highkey iconic π.
The flags can be used to control cases where it does not work or is slower. Setting them at boot time using hints works correctly (the optimizations are not used until later in the bootstrap when npx0 is attached). This is the "set it early, bestie" situation π«Ά.
π BUGS π
There are lots of them, especially on old cheap motherboards π¬. In particular, some motherboards do not have the interrupt lines from the NPX to the CPU wired properly. So like... check your wiring, or at least know that's a thing π« .
xoxo, your Debian bestie π β August 28, 1993 π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 1993 Christopher G. Demetriou
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms