Subject: Re: Threads in arm32?
To: Edwin Foo <efoo@crl.dec.com>
From: Paul Wain <paul.wain@nc.com>
List: port-arm32
Date: 01/13/1999 10:47:12
We have had arm32 pthreads running at NCI for over a year now. Ifs fairly
trivial to do, although fixing things like dirent handling and other bugs in
pthreads isnt. Various people also got Sun's Java running on the arm32 (DEC and
NCI to name two), which uses green threads. Again, a fairly trivial port.

Also if you have say Mozilla running natively on your machine, that has its own
threads library too (nspr2 - Netscape Portable Runtime2, or mpr - Mozilla
Portable Runtime if they've changed the name finally, actually has a full green
threads implementation for its front end and java implementations).

Hint: in most cases its a matter of looking for code like jmpbuf[2] and using
the handy macros in machine/setjmp.h to return R14 - that was the most of the
work that was needed to take the i386 port of Mozilla and move it over to the
arm.

Paul

Edwin Foo wrote:

> I have managed to get kaffe to pass thread tests using a snapshot of Kaffe
> from approx. 1 week ago. Internal jthreads should work okay.
>
> I have never been able to get mit-pthreads to work, but others might have. I
> think I remember someone getting msql or mysql to work once and posting
> about it to this mailing list.
>
> -Edwin
>
> -----Original Message-----
> From: Dave Millen [mailto:webmaster@largesalad.co.uk]
> Sent: Tuesday, January 12, 1999 10:35 AM
> To: NetBSD-arm32
> Subject: Threads in arm32?
>
> hi,
>
> I have succesfully compiled Kaffe from pkgsrc and it runs most java code
> well.
> Unfortunately it goes to sleep if the code tries to implement threads.
>
> I am aware that threads are not yet in the arm32 tree, having tried to build
> mysql server, but thought that Kaffe might have its own version. Apparently
> not
> :~(
>
> I then downloaded and attempted to compile pkgsrc/devel/mit-pthreads to see
> if I
> could integrate it in some way, but the compile fails with(from memory):
>
>      SWI relocation not allowed in this output format (presumably a.out)
>
> 1. Has anyone implemented threads successfully on arm32?
> 2. How close is ELF on arm32?
>
> BTW I am using gcc on the October snapshot.
>
> TIA and regards,
>
> Dave
>
> --
> Make it idiot-proof and someone will make a better idiot!
>
> e-mail: webmaster@largesalad.co.uk
> net: http://www.largesalad.co.uk/DJMsoft/

--
.----------------------------------------------------------------------.
| Paul Wain                         || Tel: +1 650 631 GOAT (4628)     |
| Network Computer Inc.             || Web: http://www.nc.com/         |
| Redwood Shores, CA 94040          ||                                 |
`----------------------------------------------------------------------'