From: "David D. Hagood" <wowbagger@sktc.net>
Subject: Re: unalligned kernel trap?
Date: 1998/11/01 [thread overview]
Message-ID: <363C7C8C.ADD4966A@sktc.net> (raw)
In-Reply-To: 363C320D.6DCD95B2@tip.nl
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.
prev parent reply other threads:[~1998-11-01 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-01 5:00 unalligned kernel trap? Raymond Doetjes
1998-11-01 5:00 ` David D. Hagood [this message]
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