git: libc - fix getcontext bug from last commit

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Dec 25 13:58:51 PST 2015


commit bc27e030834ccf1dc91bd4bba5a4a187c165ac64
Author: Matthew Dillon <dillon at apollo.backplane.com>
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


More information about the Commits mailing list