aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2015-07-21 23:22:23 +0000
committerMark Johnston <markj@FreeBSD.org>2015-07-21 23:22:23 +0000
commita5cbf8b9c06a20793b13badd84de93a1073fb84e (patch)
treee5e9283b09f56c0a2f01121708a046eabf630e15 /sys/netinet/tcp_output.c
parentf8a757d016cf802511922c11b66560d3906f7838 (diff)
downloadsrc-a5cbf8b9c06a20793b13badd84de93a1073fb84e.tar.gz
src-a5cbf8b9c06a20793b13badd84de93a1073fb84e.zip
Let the unwinder handle faults during function prologues or epilogues.
The i386 and amd64 DDB stack unwinders contain code to detect and handle the case where the first frame is not completely set up or torn down. This code was accidentally unused however, since db_backtrace() was never called with a non-NULL trap frame. This change fixes that. Also remove get_rsp() from the amd64 code. It appears to have come from i386, which needs to take into account whether the exception triggered a CPL switch, since SS:ESP is only pushed onto the stack if so. On amd64, SS:RSP is pushed regardless, so get_rsp() was doing the wrong thing for kernel-mode exceptions. As a result, we can also remove custom print functions for these registers. Reviewed by: jhb Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D2881
Notes
Notes: svn path=/head/; revision=285776
Diffstat (limited to 'sys/netinet/tcp_output.c')
0 files changed, 0 insertions, 0 deletions