commit bc27e030834ccf1dc91bd4bba5a4a187c165ac64
Author: Matthew Dillon <[email protected]>
Date:   Fri Dec 25 13:56:01 2015 -0800

    libc - fix getcontext bug from last commit
    
    * getcontext() should not save the FP state (which is all scratch),
      and was already setting the flags to indicate such, but still calling
      the xsave instruction.
    
      Remove the xsave instruction, fixing issues on numerous computers.
    
    * Note that setcontext() will properly restore the FP state if the context
      contains valid FP state (i.e. the ucontext was taken from a signal handler
      argument).
    
    Reported-by: YRabbit

Summary of changes:
 lib/libc/x86_64/sys/getcontext.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bc27e030834ccf1dc91bd4bba5a4a187c165ac64


-- 
DragonFly BSD source repository

Reply via email to