From 23fa18eaa71266feff7ba8d83022d9e1cc83c65a Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 07:42:03 +0000
Subject: [PATCH] disable pwm7

---
 kernel/arch/arm64/mm/extable.c |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/kernel/arch/arm64/mm/extable.c b/kernel/arch/arm64/mm/extable.c
index 81e694a..60a8b6a 100644
--- a/kernel/arch/arm64/mm/extable.c
+++ b/kernel/arch/arm64/mm/extable.c
@@ -9,10 +9,19 @@
 int fixup_exception(struct pt_regs *regs)
 {
 	const struct exception_table_entry *fixup;
+	unsigned long addr;
 
-	fixup = search_exception_tables(instruction_pointer(regs));
+	addr = instruction_pointer(regs);
+
+	/* Search the BPF tables first, these are formatted differently */
+	fixup = search_bpf_extables(addr);
 	if (fixup)
-		regs->pc = (unsigned long)&fixup->fixup + fixup->fixup;
+		return arm64_bpf_fixup_exception(fixup, regs);
 
-	return fixup != NULL;
+	fixup = search_exception_tables(addr);
+	if (!fixup)
+		return 0;
+
+	regs->pc = (unsigned long)&fixup->fixup + fixup->fixup;
+	return 1;
 }

--
Gitblit v1.6.2