Date: Tue, 5 Aug 2003 12:33:01 -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/libpthread/arch/ia64/ia64 context.S Message-ID: <200308051933.h75JX1nx055319@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2003/08/05 12:33:01 PDT
FreeBSD src repository
Modified files:
lib/libpthread/arch/ia64/ia64 context.S
Log:
o In _ia64_save_context() clear the return registers except for r8.
We write 1 for r8 in the context so that _ia64_restore_context()
will return with a non-zero value. _ia64_save_context() always
return 0.
o In _ia64_restore_context(), don't restore the thread pointer. It
is not normally part of the context. Also, restore the return
registers. We get called for contexts created by getcontext(),
which means we have to restore all the syscall return values.
Revision Changes Path
1.3 +25 -13 src/lib/libpthread/arch/ia64/ia64/context.S
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308051933.h75JX1nx055319>
