Re: Port for amd64?

"Wesley W. Terpstra" <[email protected]> Sat, 14 Aug 2004 13:44:46 +0200
Newsgroups gmane.comp.lib.state-threads.devel
Message-ID <[email protected]>
On Fri, Aug 13, 2004 at 07:08:37AM -0700, Claus Assmann wrote:
> Has someone already ported statethreads to amd64? I would like
> to run it under OpenBSD (and maybe others) in 64bit mode.

I have a bug filed against me for the debian package to this effect.
I also run amd64 at home.

So, in ~10 days I will definitely port it to linux/amd64.
(Though not *BSD or Solaris since I don't have these)

If you need it before then, you'll have to do it yourself.
Send me a copy, though. :-)

PS. It should be quite easy; I believe the i386 code would probably
work without change, but I am not at home and can't confirm this.

It is conceivable that the new amd64 registers changed the location of 
th stack pointer in jmpbuf, but I doubt it.

Try changing md.h, lines 153, 374, 433, 465, and 530 from
#(el)if defined(__i386__)
to
#(el)if defined(__i386__) || defined(__x86_64__)

Good luck!

-- 
Wesley W. Terpstra


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285