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) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Kernel exception handling table support.  Derived from arch/alpha/mm/extable.c.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 1998, 1999, 2001-2002, 2004 Hewlett-Packard Co
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *	David Mosberger-Tang <davidm@hpl.hp.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <asm/ptrace.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <asm/extable.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <asm/errno.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <asm/processor.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) ia64_handle_exception (struct pt_regs *regs, const struct exception_table_entry *e)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	long fix = (u64) &e->fixup + e->fixup;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	regs->r8 = -EFAULT;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	if (fix & 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 		regs->r9 = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	regs->cr_iip = fix & ~0xf;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	ia64_psr(regs)->ri = fix & 0x3;		/* set continuation slot number */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) }