From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from VA3EHSOBE010.bigfish.com (va3ehsobe010.messaging.microsoft.com [216.32.180.30]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "mail.global.frontbridge.com", Issuer "Microsoft Secure Server Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id AD095B6F84 for ; Thu, 1 Dec 2011 07:28:13 +1100 (EST) Message-ID: <4ED691D0.7040308@freescale.com> Date: Wed, 30 Nov 2011 14:28:00 -0600 From: Scott Wood MIME-Version: 1.0 To: Benjamin Herrenschmidt Subject: Re: [PATCH 4/6] powerpc/boot: Add extended precision shifts to the boot wrapper. References: <1322630640-13708-1-git-send-email-tony@bakeyournoodle.com> <1322630640-13708-5-git-send-email-tony@bakeyournoodle.com> <1322632107.21641.43.camel@pasglop> <1322684475.29041.2.camel@pasglop> In-Reply-To: <1322684475.29041.2.camel@pasglop> Content-Type: text/plain; charset="ISO-8859-1" Cc: LinuxPPC-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 11/30/2011 02:21 PM, Benjamin Herrenschmidt wrote: > On Wed, 2011-11-30 at 06:45 -0500, Josh Boyer wrote: >> On Wed, Nov 30, 2011 at 12:48 AM, Benjamin Herrenschmidt >> wrote: >>> On Wed, 2011-11-30 at 16:23 +1100, Tony Breeds wrote: >>>> Code copied from arch/powerpc/kernel/misc_32.S >>>> >>>> Signed-off-by: Tony Breeds >>>> --- >>>> arch/powerpc/boot/div64.S | 52 +++++++++++++++++++++++++++++++++++++++++++++ >>>> 1 files changed, 52 insertions(+), 0 deletions(-) >>> >>> Should we just link with libgcc ? :-) >> >> Please tell me you're joking. > > Only half... I wonder what it would look like. Wouldn't ld only pickup > what we use anyway ? We do it in U-Boot... Only problem I see is that it would need to be built as soft-float, and apparently that isn't supported by gcc on 64-bit ppc. Unfortunately there's isn't a "no float" mode. -Scott