Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163353147
D56309.id176732.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56309.id176732.diff
View Options
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -104,7 +104,7 @@
void dblfault_handler(struct trapframe *frame);
static int trap_pfault(struct trapframe *, bool, int *, int *);
-static void trap_diag(struct trapframe *, vm_offset_t);
+static void trap_diag(struct trapframe *, vm_offset_t, const char *);
static void trap_fatal(struct trapframe *, vm_offset_t);
#ifdef KDTRACE_HOOKS
static bool trap_user_dtrace(struct trapframe *,
@@ -238,7 +238,7 @@
print_efirt_faults == 2) {
printf("EFI RT fault %s\n",
traptype_to_msg(frame->tf_trapno));
- trap_diag(frame, 0);
+ trap_diag(frame, 0, "EFI runtime");
}
res = true;
} else if (frame->tf_trapno == T_PAGEFLT) {
@@ -940,7 +940,7 @@
}
static void
-trap_diag(struct trapframe *frame, vm_offset_t eva)
+trap_diag(struct trapframe *frame, vm_offset_t eva, const char *type_str)
{
int code;
u_int type;
@@ -952,7 +952,7 @@
gdt = *PCPU_PTR(gdt);
sdtossd(&gdt[IDXSEL(frame->tf_cs)], &softseg);
- printf("\n\nFatal trap %d: %s while in %s mode\n", type,
+ printf("\n%s trap %d: %s while in %s mode\n", type_str, type,
type < nitems(trap_msg) ? trap_msg[type] : UNKNOWN,
TRAPF_USERMODE(frame) ? "user" : "kernel");
/* Print these separately in case pcpu accesses trap. */
@@ -1013,7 +1013,7 @@
u_int type;
type = frame->tf_trapno;
- trap_diag(frame, eva);
+ trap_diag(frame, eva, "\nFatal");
#ifdef KDB
if (debugger_on_trap) {
bool handled;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 23, 10:37 AM (5 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32352507
Default Alt Text
D56309.id176732.diff (1 KB)
Attached To
Mode
D56309: amd64: Make EFI runtime faults less like panics
Attached
Detach File
Event Timeline
Log In to Comment