* Calculate the fpu save area size. */
| 396 | * Calculate the fpu save area size. |
| 397 | */ |
| 398 | static void |
| 399 | npxinit_bsp2(void) |
| 400 | { |
| 401 | u_int cp[4]; |
| 402 | |
| 403 | if (use_xsave) { |
| 404 | cpuid_count(0xd, 0x0, cp); |
| 405 | cpu_max_ext_state_size = cp[1]; |
| 406 | |
| 407 | /* |
| 408 | * Reload the cpu_feature2, since we enabled OSXSAVE. |
| 409 | */ |
| 410 | do_cpuid(1, cp); |
| 411 | cpu_feature2 = cp[2]; |
| 412 | } else |
| 413 | cpu_max_ext_state_size = sizeof(union savefpu); |
| 414 | } |
| 415 | |
| 416 | /* |
| 417 | * Initialize floating point unit. |
no test coverage detected