From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199609111802.LAA00318@panda.mosberger> Date: Wed, 11 Sep 1996 11:02:16 -0700 From: David Mosberger-Tang Subject: Re: UNALIGNED TRAPS!!!!!!!? >>>>> On Wed, 11 Sep 1996 18:48:22 GMT, David A Rusling 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