Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Stephen Williams <steve@icarus.icarus.com>
Subject: Re: amd on Linux/Alpha Redhat 4.1
Date: Wed, 19 Feb 1997 15:05:32 -0800	[thread overview]
Message-ID: <199702192305.PAA30521@icarus.icarus.com> (raw)

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

             reply	other threads:[~1997-02-19 23:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-19 23:05 Stephen Williams [this message]
1997-02-26 22:26 ` amd on Linux/Alpha Redhat 4.1 Erik Troan
  -- strict thread matches above, loose matches on Subject: below --
1997-02-27  5:02 Stephen Williams
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox