Commit e1d96123 authored by Albert Ou's avatar Albert Ou
Browse files

fpu: Implement floating-point context switching

* Employ a simplistic approach in which the state is always saved and
  restored once a task uses floating point.  Lazy restore should be a
  straightfoward extension, along with a counter mechanism for reverting
  to eager behavior after a succession of traps exceeds some threshold.
* Introduce architecture-specific <asm/switch_to.h> header.
* Compile with the -msoft-float option to induce linker errors upon
  undesired floating point usage in kernel code.
* Note: This initial implementation is not preemption-safe.
parent 10797503
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment