Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: David Mosberger-Tang <davidm@AZStarNet.com>
Subject: Re: UNALIGNED TRAPS!!!!!!!?
Date: Wed, 11 Sep 1996 11:02:16 -0700	[thread overview]
Message-ID: <199609111802.LAA00318@panda.mosberger> (raw)

>>>>> On Wed, 11 Sep 1996 18:48:22 GMT, David A Rusling <rusling@linux.reo.dec.com> said:

  David> Don't Panic!  They are what they sound like, unaligned
  David> accesses (eg read 32 bits from address 0xXXX2).  The kernel
  David> is just muttering rather than complaining as it has to fix
  David> them up - don't forget that early AXP CPUs cannot do any
  David> memory access other than 32 bit aligned ones...

But wouldn't be nice if somebody who actually uses fdisk would take
the time to fix them?  I think it's wrong to have new users face those
ugly warnings (and turning the warnings off is decidedly the wrong
thing to do).

In fact, with gcc-2.7.x, you can simply declare the offending
structure as "packed" and aligned to 1 byte and gcc will take care of
the rest (I forgot the exact syntax, it's documented as part of the
__attribute__ discussion and it does work---the generated code isn't
efficient, but that hardly matters for fdisk).

Besides, even the newer Alpha chips don't do unaligned accesses in hw.

	--david

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

             reply	other threads:[~1996-09-11 18:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-11 18:02 David Mosberger-Tang [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-11-19 14:05 Help. Linux support for Powerstorm? y0000218
1998-11-19 17:38 ` unaligned traps? Miller, Scott K.
1998-11-19 19:52   ` Brendan Miller
1996-09-11 20:40 UNALIGNED TRAPS!!!!!!!? C. Thatcher
1996-09-11 18:48 David A Rusling
1996-09-11 17:15 C. Thatcher
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