Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160587650
D56989.id178624.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
D56989.id178624.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
@@ -944,13 +944,9 @@
{
int code;
u_int type;
- struct soft_segment_descriptor softseg;
- struct user_segment_descriptor *gdt;
code = frame->tf_err;
type = frame->tf_trapno;
- gdt = *PCPU_PTR(gdt);
- sdtossd(&gdt[IDXSEL(frame->tf_cs)], &softseg);
printf("\n%s trap %d: %s while in %s mode\n", type_str, type,
type < nitems(trap_msg) ? trap_msg[type] : UNKNOWN,
@@ -975,11 +971,6 @@
frame->tf_rsp);
printf("frame pointer = %#hx:%#lx\n", frame->tf_ss,
frame->tf_rbp);
- printf("code segment = base 0x%lx, limit 0x%lx, type 0x%x\n",
- softseg.ssd_base, softseg.ssd_limit, softseg.ssd_type);
- printf(" = DPL %d, pres %d, long %d, def32 %d, gran %d\n",
- softseg.ssd_dpl, softseg.ssd_p, softseg.ssd_long, softseg.ssd_def32,
- softseg.ssd_gran);
printf("processor eflags = ");
if (frame->tf_rflags & PSL_T)
printf("trace trap, ");
@@ -990,8 +981,9 @@
if (frame->tf_rflags & PSL_RF)
printf("resume, ");
printf("IOPL = %ld\n", (frame->tf_rflags & PSL_IOPL) >> 12);
- printf("current process = %d (%s)\n",
- curproc->p_pid, curthread->td_name);
+ printf("current thread = %d/%d (%s/%s)\n",
+ curproc->p_pid, curthread->td_tid, curproc->p_comm,
+ curthread->td_name);
printf("rdi: %016lx rsi: %016lx rdx: %016lx\n", frame->tf_rdi,
frame->tf_rsi, frame->tf_rdx);
@@ -1003,8 +995,6 @@
frame->tf_r11, frame->tf_r12);
printf("r13: %016lx r14: %016lx r15: %016lx\n", frame->tf_r13,
frame->tf_r14, frame->tf_r15);
-
- printf("trap number = %d\n", type);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 26, 11:02 PM (12 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33561510
Default Alt Text
D56989.id178624.diff (1 KB)
Attached To
Mode
D56989: amd64: Drop segment descriptor details from trap messsages
Attached
Detach File
Event Timeline
Log In to Comment