git: libc - fix getcontext bug from last commit

Matthew Dillon dillon at
Fri Dec 25 13:58:51 PST 2015

commit bc27e030834ccf1dc91bd4bba5a4a187c165ac64
Author: Matthew Dillon <dillon at>
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
    Reported-by: YRabbit

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

DragonFly BSD source repository

More information about the Commits mailing list