* Called when the thread is dying or when discarding the kernel VFP state. * If the thread was the last to use the VFP unit mark it as unused to tell * the kernel the fp state is unowned. Ensure the VFP unit is off so we get * an exception on the next access. */
| 86 | * an exception on the next access. |
| 87 | */ |
| 88 | void |
| 89 | vfp_discard(struct thread *td) |
| 90 | { |
| 91 | |
| 92 | #ifdef INVARIANTS |
| 93 | if (td != NULL) |
| 94 | CRITICAL_ASSERT(td); |
| 95 | #endif |
| 96 | if (PCPU_GET(fpcurthread) == td) |
| 97 | PCPU_SET(fpcurthread, NULL); |
| 98 | |
| 99 | vfp_disable(); |
| 100 | } |
| 101 | |
| 102 | static void |
| 103 | vfp_store(struct vfpstate *state) |
no test coverage detected