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) /* 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2)  * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Licensed under the GPL
^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) #include <sysdep/ptrace.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) /* These two are from asm-um/uaccess.h and linux/module.h, check them. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) struct exception_table_entry
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	unsigned long insn;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	unsigned long fixup;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) const struct exception_table_entry *search_exception_tables(unsigned long add);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) /* Compare this to arch/i386/mm/extable.c:fixup_exception() */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) int arch_fixup(unsigned long address, struct uml_pt_regs *regs)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	const struct exception_table_entry *fixup;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	fixup = search_exception_tables(address);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	if (fixup) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 		UPT_IP(regs) = fixup->fixup;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 		return 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) }