From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199702262210.RAA16305@rrdjazz.nist.gov> Date: Wed, 26 Feb 1997 17:26:33 -0500 (EST) From: Erik Troan Subject: Re: amd on Linux/Alpha Redhat 4.1 In-Reply-To: <199702192305.PAA30521@icarus.icarus.com> How can I reproduce the problem this causes? On Wed, 19 Feb 1997, Stephen Williams wrote: > > 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." > > ------------------------------------------------------------------------------- | I told you I'm not very bright -- Sugar in "Some Like It Hot" | | "RPM is the greatest thing since swap-space" - Bryan C. Andregg | | | Erik Troan = ewt@redhat.com = ewt@sunsite.unc.edu | -- 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