fp state save, restore, and error handling
authorMichael Taufen <mtaufen@gmail.com>
Mon, 22 Feb 2016 22:55:52 +0000 (14:55 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 26 Feb 2016 16:28:20 +0000 (11:28 -0500)
commit6a971b0cd8641bbc4becebc750c86eb0b910b8a7
treee2f1c58ec6383809bfec843294993639d71c3e64
parent7f6a969a177cd503ed33e9304f57901838be073b
fp state save, restore, and error handling

save_fp_state and restore_fp_state now use xsaveopt64 and xrstor64,
restore_fp_state handles faults. In the event of a fault,
restore_fp_state prints an error message and then restores
the fp state to a default that was determined at boot.

Signed-off-by: Michael Taufen <mtaufen@gmail.com>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/trap.h