From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,37eb2a188d23a392 X-Google-Attributes: gid111c93,public From: "David D. Hagood" Subject: Re: unalligned kernel trap? Date: 1998/11/01 Message-ID: <363C7C8C.ADD4966A@sktc.net>#1/1 X-Deja-AN: 407259943 Content-Transfer-Encoding: 7bit References: <363C320D.6DCD95B2@tip.nl> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: SouthWind Internet Access, Inc. Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha 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.