patch-npx-0.diff
| b/sys/platform/pc32/isa/npx.c | ||
|---|---|---|
| 321 | 321 | |
| 322 | 322 |
#else /* !SMP */ |
| 323 | 323 |
device_set_desc(dev, "math processor"); |
| 324 |
/* |
|
| 325 |
* Modern CPUs all have an FPU that uses the INT16 interface |
|
| 326 |
* and provide a simple way to verify that, so handle the |
|
| 327 |
* common case right away. |
|
| 328 |
*/ |
|
| 329 |
if (cpu_feature & CPUID_FPU) {
|
|
| 330 |
npx_irq13 = 0; |
|
| 331 |
npx_ex16 = hw_float = npx_exists = 1; |
|
| 332 |
return (0); |
|
| 333 |
} |
|
| 324 | 334 | |
| 325 | 335 |
/* |
| 326 | 336 |
* Don't use fwait here because it might hang. |