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-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Trampoline to trace irqs off. (otherwise CALLER_ADDR1 might crash)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * Copyright 2008 by Steven Rostedt, Red Hat, Inc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *  (inspired by Andi Kleen's thunk_64.S)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 	#include <linux/linkage.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 	#include <asm/asm.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 	#include <asm/export.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	/* put return address in eax (arg1) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	.macro THUNK name, func, put_ret_addr_in_eax=0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) SYM_CODE_START_NOALIGN(\name)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	pushl %eax
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	pushl %ecx
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	pushl %edx
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	.if \put_ret_addr_in_eax
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	/* Place EIP in the arg1 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	movl 3*4(%esp), %eax
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	.endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	call \func
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	popl %edx
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	popl %ecx
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	popl %eax
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	ret
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	_ASM_NOKPROBE(\name)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) SYM_CODE_END(\name)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	.endm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #ifdef CONFIG_PREEMPTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	THUNK preempt_schedule_thunk, preempt_schedule
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	THUNK preempt_schedule_notrace_thunk, preempt_schedule_notrace
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	EXPORT_SYMBOL(preempt_schedule_thunk)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	EXPORT_SYMBOL(preempt_schedule_notrace_thunk)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)