cvs commit: src/lib/libc/amd64/gen makecontext.c
Peter Wemm
peter at FreeBSD.org
Thu Dec 4 17:36:45 PST 2003
peter 2003/12/04 17:36:44 PST
FreeBSD src repository
Modified files:
lib/libc/amd64/gen makecontext.c
Log:
"Fix" makecontext() so that the C code begins execution with its
ABI-required stack alignment. C code expects that the push of the
return address disturbed the 16 byte alignment and it will take corrective
measures to fix it before making another call. Of course, if its wrong
to start with, then all hell breaks loose. Essentially we "fix" this
by making the stack alignment odd to start with.
This was one of the things that broke on libkse with apps that use
floating point/varargs/etc.
Approved by: re (scottl)
Revision Changes Path
1.2 +6 -2 src/lib/libc/amd64/gen/makecontext.c
More information about the cvs-src
mailing list