Date: Sat, 31 May 2003 12:42:51 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/ia64/gen Makefile.inc makecontext.c Message-ID: <200305311942.h4VJgpEx019201@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305311942.h4VJgpEx019201>