HomeFreeBSD

"Fix" makecontext() so that the C code begins execution with its
rS123154Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

"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)

Details

Provenance
peterAuthored on
Parents
rS123153: Fix a potential problem with atapi-cam where an incorrect flag is passed
Branches
Unknown
Tags
Unknown

Event Timeline