since on amd64 the first argument to a function is generally not on the
stack.
Revert an old DTrace bug fix to some code that assumed that
sizeof(struct amd64_frame) == 16.
Reviewed by: jhb, kib
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D3255
}
arg -= (inreg + 1);
- stack = (uintptr_t *)fp + 2;
+ stack = (uintptr_t *)&fp[1];
load:
DTRACE_CPUFLAG_SET(CPU_DTRACE_NOFAULT);
struct amd64_frame {
struct amd64_frame *f_frame;
u_long f_retaddr;
- u_long f_arg0;
};
struct i386_frame {