trap_fred_handle_k_exc(): handle #AC in kernel

Fixes:	c6d7235ac1 ("amd64: handle #AC in kernel mode")
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov committed 2026-10-27 13:58:48 +02:00
1 parent 787e2e411d
commit e86a612d77
1 file changed
+4
+4
View File
@@ -1815,6 +1815,10 @@ trap_fred_handle_k_exc(struct thread *td, struct trapframe_fred *frame,
case IDT_MF:
break;
case IDT_AC:
if (curpcb->pcb_onfault != NULL) {
frame->tf_idt.tf_rip = (long)curpcb->pcb_onfault;
return;
}
break;
case IDT_MC:
mca_intr();