Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* unalligned kernel trap?
@ 1998-11-01  5:00 Raymond Doetjes
  1998-11-01  5:00 ` David D. Hagood
  0 siblings, 1 reply; 2+ messages in thread
From: Raymond Doetjes @ 1998-11-01  5:00 UTC (permalink / raw)


I compiled a nwe kernel, now when it noots i get this strange error
unalligned kernel trap (some hex codes) when my Alpha initiates my IDE
(I have bioth IDE and SCSI drives in my system).

It doesn't seem to be a big pronlem cause everythimng runs fine. But I
like to no what it meens

Raymond





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: unalligned kernel trap?
  1998-11-01  5:00 unalligned kernel trap? Raymond Doetjes
@ 1998-11-01  5:00 ` David D. Hagood
  0 siblings, 0 replies; 2+ messages in thread
From: David D. Hagood @ 1998-11-01  5:00 UTC (permalink / raw)




Raymond Doetjes wrote:

> I compiled a nwe kernel, now when it noots i get this strange error
> unalligned kernel trap (some hex codes) when my Alpha initiates my IDE
> (I have bioth IDE and SCSI drives in my system).
>
> It doesn't seem to be a big pronlem cause everythimng runs fine. But I
> like to no what it meens
>
> Raymond

The Alpha family processors cannot access memory in an unaligned fashion:
that is, a 4 byte DWORD that has an address that doesn't end in 0,4,8 or
C, an 8 byte QWORD that doesn't end in 0 or 8, a 2 byte word that doesn't
end in 0,2,4,6,8,A,C, or E. The reason for this is somewhat technical, and
has to do with keeping the memory access system simple (and fast).

Any attempt to access an unaligned word causes the processor to take an
exception. Well written OS's (like Linux) catch the exception, figure out
what was being accessed, and do the access with software, then return from
the exception. Your program continues on fat, dumb, and happy, as though
the exception never happened. However, it takes several hundred times as
long to do the operation as if it were aligned.

The "unaligned access" message is more of a warning: it's saying "Somebody
fix this code so it won't do this and will run faster!" It doesn't mean
anything is "broken", just sub optimal. Feel free to ignore it, or dive in
and fix it.






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-11-01  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-01  5:00 unalligned kernel trap? Raymond Doetjes
1998-11-01  5:00 ` David D. Hagood

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