Re: [RFC] Enable ARCH_USE_BUILTIN_BSWAP by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2015-10-28 at 18:44 -0700, David Miller wrote:
> From: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
> Date: Wed, 28 Oct 2015 23:53:52 +0900
> 
> > I know MIPS will need some additional libgcc functionality brought
> > into the kernel, and Ralf has already been looking at that; not
> sure
> > about other platforms. Let's find out :)
> 
> It should properly build on Sparc, but I still need to do my due
> diligence to see if gcc will actually emit the little-endian loads
> and stores or not...

The results of the 0-day test (thanks Fengguang) seem to indicate that
we need an implementation of __bswapdi2 and __bswapsi2 on SPARC, as
well as blackfin, frv, m32r, m68k, microblaze, mips, mn10300, parisc
and sh.

I wonder if we could provide a generic weak version in the lib/
directory which just uses the existing __arch_swab32 et al? Does GCC
use a standard function call ABI for __bswap[sd]i2 or can it be
'special'?

-- 
dwmw2


Attachment: smime.p7s
Description: S/MIME cryptographic signature


[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux