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_IA64_PATCH_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define _ASM_IA64_PATCH_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Copyright (C) 2003 Hewlett-Packard Co
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  *	David Mosberger-Tang <davidm@hpl.hp.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * There are a number of reasons for patching instructions.  Rather than duplicating code
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  * all over the place, we put the common stuff here.  Reasons for patching: in-kernel
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  * module-loader, virtual-to-physical patch-list, McKinley Errata 9 workaround, and gate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  * shared library.  Undoubtedly, some of these reasons will disappear and others will
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)  * be added over time.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/elf.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern void ia64_patch (u64 insn_addr, u64 mask, u64 val);	/* patch any insn slot */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) extern void ia64_patch_imm64 (u64 insn_addr, u64 val);		/* patch "movl" w/abs. value*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) extern void ia64_patch_imm60 (u64 insn_addr, u64 val);		/* patch "brl" w/ip-rel value */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) extern void ia64_patch_mckinley_e9 (unsigned long start, unsigned long end);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) extern void ia64_patch_vtop (unsigned long start, unsigned long end);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern void ia64_patch_phys_stack_reg(unsigned long val);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern void ia64_patch_rse (unsigned long start, unsigned long end);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern void ia64_patch_gate (void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #endif /* _ASM_IA64_PATCH_H */