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 6A9CB3ED56 for ; Mon, 14 Oct 2002 22:04:43 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g9F24ht08334 for axp-list@listman.redhat.com; Mon, 14 Oct 2002 22:04:43 -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 g9F24hf08330 for ; Mon, 14 Oct 2002 22:04:43 -0400 Received: from mylaptop.gatworks.com (pool-68-161-16-253.ny325.east.verizon.net [68.161.16.253]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g9F1iGw01502 for ; Mon, 14 Oct 2002 21:44:16 -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 g9F231l04132 for ; Mon, 14 Oct 2002 22:03:05 -0400 Message-ID: <3DAB7754.F6F5D8B0@voicenet.com> Date: Mon, 14 Oct 2002 22:03:00 -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 To: axp-list@redhat.com Subject: Re: unaligned traps question References: <01da01c273e4$d5c57320$35de2b09@Viswanadha> 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: I suppose one might say that all misalignments are trapped. The kernel then figures out what to do. If the misalignment is within the kernel, that also traps, but the kernel gets a little peaved. This generally happens when a new device driver is included ( ie never tested on a 64bit machine before.) If misalignment is within user space, then there is a per-process flag ( i think a dec-unix ( OSF?) flag ) to indicate that a user fault should happen, or an automatic 'fixup' should happen ( and the user would be none to the wiser.) I think with the 'user fault' category, then kernel can either stop the task, or trap to the user task for the user to determine what to do. 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.) I would like to see the unalignment faults, maybe then these things 'might' get fixed. The theory, i suppose, is that maybe you can find the 'coder' who in all likelyhood only thinks in intel, and probably has no time to delve into the problem - ergo a lot of trap messages with no one to repair same! /gat Ram Viswanadha wrote: > Hi everyone, > > So there are two possibilities, since my code has not changed: > a) The kernel has become more lenient and is not producing any unaligned > trap messages. > b) GCC had a bug which produced unaligned data which has hence been fixed.