Page MenuHomeFreeBSD

D39872.1789621844.diff
No OneTemporary

Size
746 B
Referenced Files
None
Subscribers
None

D39872.1789621844.diff

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
@@ -246,18 +246,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.
*
@@ -294,7 +282,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

Mime Type
text/plain
Expires
Thu, Sep 17, 5:10 AM (5 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29722078
Default Alt Text
D39872.1789621844.diff (746 B)

Event Timeline