diff --git a/sys/cddl/dev/dtrace/amd64/dtrace_isa.c b/sys/cddl/dev/dtrace/amd64/dtrace_isa.c index d233be4fd2c1..f6d408e34032 100644 --- a/sys/cddl/dev/dtrace/amd64/dtrace_isa.c +++ b/sys/cddl/dev/dtrace/amd64/dtrace_isa.c @@ -385,8 +385,8 @@ dtrace_getarg(int arg, int aframes) * we're seeking is passed in regsiters, we can just * load it directly. */ - struct trapframe *tf = - (struct trapframe *)((uintptr_t)&fp[1]); + struct trapframe *tf = (struct trapframe *) + ((uintptr_t)&fp[1] + sizeof(uintptr_t)); if (arg <= inreg) { switch (arg) {