Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags   |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef ___ASM_SPARC_STRING_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define ___ASM_SPARC_STRING_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) #if defined(__sparc__) && defined(__arch64__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <asm/string_64.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #include <asm/string_32.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) /* First the mem*() things. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define __HAVE_ARCH_MEMMOVE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) void *memmove(void *, const void *, __kernel_size_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #define __HAVE_ARCH_MEMCPY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define __HAVE_ARCH_MEMSET
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define memset(s, c, count) __builtin_memset(s, c, count)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define __HAVE_ARCH_MEMSCAN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define memscan(__arg0, __char, __arg2)						\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) ({										\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	void *__memscan_zero(void *, size_t);					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	void *__memscan_generic(void *, int, size_t);				\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	void *__retval, *__addr = (__arg0);					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	size_t __size = (__arg2);						\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 										\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	if(__builtin_constant_p(__char) && !(__char))				\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 		__retval = __memscan_zero(__addr, __size);			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	else									\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 		__retval = __memscan_generic(__addr, (__char), __size);		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 										\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	__retval;								\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) })
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define __HAVE_ARCH_MEMCMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) int memcmp(const void *,const void *,__kernel_size_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) /* Now the str*() stuff... */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define __HAVE_ARCH_STRLEN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) __kernel_size_t strlen(const char *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define __HAVE_ARCH_STRNCMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) int strncmp(const char *, const char *, __kernel_size_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #endif