From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id A48832F108 for ; Thu, 26 Jul 2001 14:39:02 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f6QIWjX32490 for axp-list@listman.redhat.com; Thu, 26 Jul 2001 14:32:45 -0400 Received: from c1.solidsolutions.com (dsl027-159-034.nyc1.dsl.speakeasy.net [216.27.159.34]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f6QIWig32484 for ; Thu, 26 Jul 2001 14:32:45 -0400 Received: from DFDIS30 (dfdis9.dfdis.com [206.31.218.115]) by c1.solidsolutions.com (8.9.3/8.9.3) with SMTP id NAA13834 for ; Thu, 26 Jul 2001 13:32:08 -0400 Message-ID: <319101c11603$2c071860$8119fea9@fs1.internal.interscopetech.net> From: "Frank Palmieri" To: References: <3B5E197B.50ED0967@iplink.net> <20010725114713.C17679@linux04.mro.cpqcorp.net> <3B5F2EFD.1440F426@Iplink.net> <20010726092928.A19079@linux04.mro.cpqcorp.net> <3B6051A5.2643B4F@iplink.net> Subject: Re: Unaligned accesses Date: Thu, 26 Jul 2001 14:45:39 -0400 Organization: InterScope Technologies, Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 X-Reply-To: "Frank Palmieri" List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: Alvin: There was a uac utility with Digital Unix that could control how unaligned accesses were handled. Here's a little program that spawns a shell with the fixup's disabled. When you run your program it will halt instead of doing the fixups and you can then eliminate them. Note this can be "tedious" and some programs such as emacs spew out unaligned accesses so be careful what you run. Note also this code is old and I haven't used it in a while so it may need a bit of rework but gives a place to start. Frank -------------------------------------------------- #include #include static int setsysinfo( unsigned long op, void *buffer, unsigned long size, int * start, void *arg, unsigned long flag ) { syscall( __NR_osf_setsysinfo, op, buffer, size, start, arg, flag ); } void trap_unaligned(void) { unsigned int buf[2]; buf[0] = SSIN_UACPROC; buf[1] = UAC_SIGBUS | UAC_NOPRINT; setsysinfo( SSI_NVPAIRS, buf, 1, 0, 0, 0 ); } int main( int ac ) { trap_unaligned(); printf("Creating a subshell with SIGBUS setting!\n" ); execl("/bin/bash", "/bin/bash", (char *)0); return(0); }