[PATCH 4/6] powerpc/boot: Add extended precision shifts to the boot wrapper.
Scott Wood
scottwood at freescale.com
Thu Dec 1 07:28:00 EST 2011
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
>> <benh at kernel.crashing.org> 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 <tony at bakeyournoodle.com>
>>>> ---
>>>> 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
More information about the Linuxppc-dev
mailing list