From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199702192305.PAA30521@icarus.icarus.com> Date: Wed, 19 Feb 1997 15:05:32 -0800 From: Stephen Williams Subject: Re: amd on Linux/Alpha Redhat 4.1 OK, this definitely fixes AMD on the alpha, at least for now. The required change is so tiny that I'll just tell you what it is. ... change line 418 of amd/wire.c from subnet = htonl(subnet); to read like this: subnet = ntohl(subnet) & 0xffffffffUL; Done. (Oh yes, change axp to alpha in the spec file, too.) Somebody is sign-extending the swapped word to fill 64bits. This breaks a while loop a few statements lower. Ugh. I don't know if there is a clear word at to whether ntohl and friends are supposed to treat the values as signed or unsigned, but the above mask will work no matter what the final ruling is, and gets AMD working for those who would rather get on with it. -- Steve Williams steve@icarus.com steve@picturel.com "The woods are lovely, dark and deep. But I have promises to keep, And lines to code before I sleep, And lines to code before I sleep." -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com