2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 13:43:55 +08:00
linux-next/arch/arm64/lib
Will Deacon 12a0ef7b0a arm64: use generic strnlen_user and strncpy_from_user functions
This patch implements the word-at-a-time interface for arm64 using the
same algorithm as ARM. We use the fls64 macro, which expands to a clz
instruction via a compiler builtin. Big-endian configurations make use
of the implementation from asm-generic.

With this implemented, we can replace our byte-at-a-time strnlen_user
and strncpy_from_user functions with the optimised generic versions.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2013-12-19 17:43:06 +00:00
..
bitops.S arm64: Treat the bitops index argument as an 'int' 2013-05-08 10:33:17 +01:00
clear_page.S arm64: Miscellaneous library functions 2012-09-17 13:42:18 +01:00
clear_user.S
copy_from_user.S
copy_in_user.S
copy_page.S arm64: Miscellaneous library functions 2012-09-17 13:42:18 +01:00
copy_to_user.S
delay.c arm64: Miscellaneous library functions 2012-09-17 13:42:18 +01:00
Makefile arm64: use generic strnlen_user and strncpy_from_user functions 2013-12-19 17:43:06 +00:00
memchr.S arm64: klib: Optimised memory functions 2013-03-21 17:39:29 +00:00
memcpy.S arm64: klib: Optimised memory functions 2013-03-21 17:39:29 +00:00
memmove.S arm64: klib: Optimised memory functions 2013-03-21 17:39:29 +00:00
memset.S arm64: klib: Optimised memory functions 2013-03-21 17:39:29 +00:00
strchr.S arm64: klib: Optimised string functions 2013-03-21 17:39:30 +00:00
strrchr.S arm64: klib: Optimised string functions 2013-03-21 17:39:30 +00:00