[M3commit] CVS Update: cm3

Jay Krell jkrell at elego.de
Sun Feb 1 06:04:33 CET 2009


CVSROOT:	/usr/cvs
Changes by:	jkrell at birch.	09/02/01 06:04:33

Modified files:
	cm3/m3-libs/m3core/src/context/: tcontext.c 
	cm3/m3-libs/m3core/src/context/x86/: context.c context.h 
	                                     contextasm.s 
Added files:
	cm3/m3-libs/m3core/src/context/x86/: gendef.c 

Log message:
	On OpenBSD (x86 only currently) use the struct sigcontext/ucontext_t
	they define instead of defining our own -- note that
	OpenBSD has typedef sigcontext ucontext_t which is very dubious, since
	for example it lacks the Posix-specified fields uc_mcontext,
	uc_stack, uc_link, uc_sigmask. We use their 'ucontext_t' for
	our uc_mcontext.
	The point of sharing their struct would then be to overwrite
	the third parameter to the signal handler, rather than jumping
	to our own new context. However that version access violates every
	so often, whereas using setcontext/jmp does not.




More information about the M3commit mailing list