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) /* Sparc optimized memcmp code.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2000, 2008 David S. Miller (davem@davemloft.net)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #include <linux/linkage.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <asm/asm.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <asm/export.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	.text
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) ENTRY(memcmp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	cmp	%o2, 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 1:	BRANCH32(be, pn, 2f)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	 nop
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	ldub	[%o0], %g7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	ldub	[%o1], %g3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	sub	%o2, 1, %o2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	add	%o0, 1, %o0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	add	%o1, 1, %o1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	subcc	%g7, %g3, %g3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	BRANCH32(be, pt, 1b)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	 cmp	%o2, 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	retl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	 mov	%g3, %o0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 2:	retl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	 mov	0, %o0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) ENDPROC(memcmp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) EXPORT_SYMBOL(memcmp)