aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2015-09-11 03:31:22 +0000
committerMark Johnston <markj@FreeBSD.org>2015-09-11 03:31:22 +0000
commit1e954a7c639b52ed66042795c7445f16c4fc4dc9 (patch)
treebd69e05b9aff86437d0df31f23df93b3f0537bc4 /sys/cddl
parent4db79feb8f7fbe5fb46a1647fab5f67e7e9ed508 (diff)
downloadsrc-1e954a7c639b52ed66042795c7445f16c4fc4dc9.tar.gz
src-1e954a7c639b52ed66042795c7445f16c4fc4dc9.zip
Remove the arg0 field from struct amd64_frame. Its existence was a bug,
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
Notes
Notes: svn path=/head/; revision=287644
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/dev/dtrace/amd64/dtrace_isa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/dev/dtrace/amd64/dtrace_isa.c b/sys/cddl/dev/dtrace/amd64/dtrace_isa.c
index 07a1b0a7ae8a..e05932d77e3c 100644
--- a/sys/cddl/dev/dtrace/amd64/dtrace_isa.c
+++ b/sys/cddl/dev/dtrace/amd64/dtrace_isa.c
@@ -440,7 +440,7 @@ dtrace_getarg(int arg, int aframes)
}
arg -= (inreg + 1);
- stack = (uintptr_t *)fp + 2;
+ stack = (uintptr_t *)&fp[1];
load:
DTRACE_CPUFLAG_SET(CPU_DTRACE_NOFAULT);