From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 23DC24083D for ; Tue, 15 Oct 2002 14:10:09 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g9FIA9a31387 for axp-list@listman.redhat.com; Tue, 15 Oct 2002 14:10:09 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g9FIA8f31383 for ; Tue, 15 Oct 2002 14:10:08 -0400 Received: from mylaptop.gatworks.com (pool-68-161-18-153.ny325.east.verizon.net [68.161.18.153]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g9FHnbw26000 for ; Tue, 15 Oct 2002 13:49:37 -0400 Received: from voicenet.com (mylaptop.gatworks.com [127.0.0.1]) by mylaptop.gatworks.com (8.11.6/8.11.6) with ESMTP id g9FI8VV01422 for ; Tue, 15 Oct 2002 14:08:32 -0400 Message-ID: <3DAC599F.D662E8D@voicenet.com> Date: Tue, 15 Oct 2002 14:08:31 -0400 From: Uncle George X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.18-3 i686) X-Accept-Language: en MIME-Version: 1.0 Cc: axp-list@redhat.com Subject: Re: unaligned traps question References: <01da01c273e4$d5c57320$35de2b09@Viswanadha> <3DAB7754.F6F5D8B0@voicenet.com> <02101511393604.01593@shadowfax.middleearth> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: George France wrote: > On Monday 14 October 2002 22:03, Uncle George wrote: > > I suppose one might say that all misalignments are trapped. The kernel then > > figures out what to do. > > close enough. Close enough to what? > > > gory, then kernel can > > either stop the task, or trap to the user task for the user to determine > > what to do. > > Alignment traps are not a serious bug but will make the code run significantly > slower. They are mostly really annoying. Your opinion is amusing. If the kernel didnt bother fixing these faults, then you'd have a dead program - but some incentive to fix the problem. If the kernel could fix them, then you pay the price in delayed execution of that faulty instruction - with fairly no incentive to go and get it fixed. If the processor is so fast, then maybe its not even worth bothering. So what would it take for this fault to escalate into a serious matter. On a 266Mhz 21064 machine, it may warrent an evaluation. on a 800mhz 21264, under the same condidions it may warrent a yawn. And a different type of person may change that concept alltogether. > > > > > > And Yes, gcc et al ( particularuly ) the runtime start-up code does set > > this flag. I cannot tell you who deceides this ( ie kernel is set to trap, > > but glibc tells the kernel to silently fix these things up. or the other > > way around.) > > Please see: > > linux/arch/alpha/mm/fault.c I'd have to look for some alpha code, but maybe my references were for FP faults. I think that there was just as much code for alignment faults, but i'd have to check again.