amd64: print 'EFI RT fault' line before fault CPU state

Suggested by:	arrowd
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Konstantin Belousov
2025-10-24 12:39:13 +03:00
parent 2612f1b864
commit cfb28c5ea0
+2 -2
View File
@@ -435,9 +435,9 @@ trap(struct trapframe *frame)
if ((print_efirt_faults == 1 && cnt == 0) ||
print_efirt_faults == 2) {
trap_diag(frame, 0);
printf("EFI RT fault %s\n",
traptype_to_msg(type));
trap_diag(frame, 0);
}
frame->tf_rip = (long)curpcb->pcb_onfault;
return;
@@ -870,8 +870,8 @@ trap_pfault(struct trapframe *frame, bool usermode, int *signo, int *ucode)
if ((print_efirt_faults == 1 && cnt == 0) ||
print_efirt_faults == 2) {
trap_diag(frame, eva);
printf("EFI RT page fault\n");
trap_diag(frame, eva);
}
}
frame->tf_rip = (long)curpcb->pcb_onfault;