mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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:
1 parent
787e2e411d
commit
e86a612d77
1 file changed
+4
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user