Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163859676
D39872.id121208.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
746 B
Referenced Files
None
Subscribers
None
D39872.id121208.diff
View Options
diff --git a/sys/cddl/dev/kinst/amd64/kinst_isa.c b/sys/cddl/dev/kinst/amd64/kinst_isa.c
--- a/sys/cddl/dev/kinst/amd64/kinst_isa.c
+++ b/sys/cddl/dev/kinst/amd64/kinst_isa.c
@@ -245,18 +245,6 @@
kp->kp_md.disp = (int64_t)disp32;
}
-static int
-kinst_dis_get_byte(void *p)
-{
- int ret;
- uint8_t **instr = p;
-
- ret = **instr;
- (*instr)++;
-
- return (ret);
-}
-
/*
* Set up all of the state needed to faithfully execute a probed instruction.
*
@@ -293,7 +281,7 @@
kpmd = &kp->kp_md;
d86.d86_data = instr;
- d86.d86_get_byte = kinst_dis_get_byte;
+ d86.d86_get_byte = dtrace_dis_get_byte;
d86.d86_check_func = NULL;
if (dtrace_disx86(&d86, SIZE64) != 0) {
KINST_LOG("failed to disassemble instruction at: %p", *instr);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jul 27, 4:02 PM (47 m, 5 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35608672
Default Alt Text
D39872.id121208.diff (746 B)
Attached To
Mode
D39872: kinst: use dtrace_dis_get_byte() instead of own copy
Attached
Detach File
Event Timeline
Log In to Comment