On Fri, May 25, 2012 at 5:41 PM, David Miller <davem@xxxxxxxxxxxxx> wrote: > > Ok, something like the following, just to give you an idea. Just the > sparc word-at-a-time.h header addition and the lib/strnlen_user.c > changes. Looks good to me. > Probably I should add little-endian code to the header and put it > under asm-generic instead since there isn't really anything sparc > specific about it and this will make it easier for other ports to use > this stuff. Actually, I think it's better if we just do two separate ones: a "generic little-endian" and a "generic big-endian" one. Rather than mixing both into one file that is then included from some arch-file that statically knows its endianness instead. > This is untested and of course we'd need to tweak the x86 > word-at-a-time header and adjust the other call sites in > the DCACHE and elsewhere. I can do that. Give me a few minutes. Or more. Let's see how it ends up.. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html