cvs commit: src/lib/libc/amd64/sys Makefile.inc getcontext.S

Peter Wemm peter at FreeBSD.org
Wed Sep 3 17:29:13 PDT 2003


peter       2003/09/03 17:29:12 PDT

  FreeBSD src repository

  Modified files:
    lib/libc/amd64/sys   Makefile.inc 
  Added files:
    lib/libc/amd64/sys   getcontext.S 
  Log:
  Apply same basic fix for getcontext(2) as for i386.  Store the return
  value for getcontext() in a preserved register rather than on the stack.
  The second time around, the stack value would likely have changed so we
  can't depend on it for the return value.
  
  Revision  Changes    Path
  1.28      +2 -2      src/lib/libc/amd64/sys/Makefile.inc
  1.1       +54 -0     src/lib/libc/amd64/sys/getcontext.S (new)


More information about the cvs-src mailing list