From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 65912DDFB0 for ; Wed, 30 May 2007 22:02:08 +1000 (EST) In-Reply-To: References: <18012.61822.197988.279764@cargo.ozlabs.ibm.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: From: Segher Boessenkool Subject: Re: Saving to 32 bits of GPRs in signal context Date: Wed, 30 May 2007 14:01:48 +0200 To: Kumar Gala Cc: Ulrich Weigand , Paul Mackerras , Steve Munroe , Anton Blanchard , linuxppc-dev list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> I think actually it would be useful to have the saving/restoring of >> the high 32 bits controlled by a prctl, so that programs have to ask >> explicitly for the new behaviour (and programs that don't want to use >> the high 32 bits don't incur the extra overhead). > > I like this, it means we can error if HW doesn't support it and > requires applications to do something specific to enable the feature. It also means every such application has to make sure it calls the prctl() before running any 64-bit insns. No one will get this right unless support for this is put into the ELF loader. Segher