[Mono-devel-list] Mono-1.1.7 - NetBSD 2.0.x Support

Jérôme Laban jaylee at epitech.net
Wed May 11 17:47:47 EDT 2005


 

From: Bill Middleton [mailto:flashdict at gmail.com] 
Sent: mercredi 11 mai 2005 17:55
To: Jérôme Laban; mono-devel-list at lists.ximian.com
Subject: Re: [Mono-devel-list] Mono-1.1.7 - NetBSD 2.0.x Support 
 
On 5/11/05, Jérôme Laban <jaylee at epitech.net> wrote: 


I can leave the default netbsd. However, I am sure mono will never run
properly on NetBSD 1.6 because of the lack of native threads support. I'll
make the changes anyway.
[...]

Indeed, these redefinitions are odd, but the register indices are not in the
same orders under NetBSD, hence the shuffle. I'll check if this is still
necessary, since it is a port from an 1.1.4 patch. About the FreeBSD
changes, I'll check against the SVN although the 1.1.7 is not really that
old.


The changes to mini-x86.c in particular seemed unnecessary, since
pthread_attr_init() is now called by default.  SA_STACK->SA_ONSTACK is also
already defined for netbsd in  mini-x86.h when MONO_ARCH_USE_SIGACTION is
defined, so no need to redefine it in mini.c.  As for the register indices,
that would require the changes, of course.
 

Ok, I did not dig that deep when I ported the patch. There were many changes
between 1.1.4 and 1.1.7 :) Agreed for pthread_attr_init and SA_ONSTACK.
 
I also noted that redefining register indices is not needed if
HAVE_WORKING_SIGALTSTACK is defined. But since it can be disabled using
--with-sigaltstack=no, it would break the compatibility with NetBSD's
sigcontext. I think its best to leave it there.

 
Impressive hacks in libgc, too.  You jumped right out of my sandbox with
that stuff.  :)
 

Thanks, glad to hear that ;)
 
I joined with this message the updated patch to include your suggestions.
 
Regards,
--
Jérôme Laban
{Epitech.}
 <http://msdn.labtech.epitech.net/blogs/jayleet>
http://msdn.labtech.epitech.net/blogs/jaylee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050511/bea2a33b/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono-1.1.7-netbsd-20050511-2.diff.bz2
Type: application/octet-stream
Size: 4116 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050511/bea2a33b/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3026 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050511/bea2a33b/attachment.bin 


More information about the Mono-devel-list mailing list