cvs commit: src/lib/libc/ia64/gen Makefile.inc makecontext.c
Marcel Moolenaar
marcel at FreeBSD.org
Sat May 31 12:42:52 PDT 2003
marcel 2003/05/31 12:42:51 PDT
FreeBSD src repository
Modified files:
lib/libc/ia64/gen Makefile.inc
Added files:
lib/libc/ia64/gen makecontext.c
Log:
Rough implement of makecontext() needed to support libthr.
o Up to 8 arguments are allowed. This is the number of arguments
passed in registers. Subsequent registers are passed on the stack.
Trying to deal with this is not easy in C and likely forces us to
use assembly code. Let's avoid that for now. There's no indication
that more than 8 arguments is a strong requirement (Linux also has
an 8 argument limit).
o We expect that the stack base is 16-byte aligned and the stack
size is a multiple of 16-byte. We bomb out if this is not the case.
We probably want to be less strict by enforcing it ourselves. For
now it's better to not hide gross alignment bogons by silently
correcting it.
Revision Changes Path
1.7 +1 -1 src/lib/libc/ia64/gen/Makefile.inc
1.1 +121 -0 src/lib/libc/ia64/gen/makecontext.c (new)
More information about the cvs-src
mailing list