Set oldfp so the check for fp == oldfp works as expected.

Obtained from:	ABT Systems Ltd
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2016-05-31 11:32:09 +00:00
parent ba165a31b3
commit 1cb290d2f2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301034

View File

@ -119,7 +119,7 @@ dtrace_getustack_common(uint64_t *pcstack, int pcstack_limit, uintptr_t pc,
volatile uint16_t *flags =
(volatile uint16_t *)&cpu_core[curcpu].cpuc_dtrace_flags;
int ret = 0;
uintptr_t oldfp;
uintptr_t oldfp = fp;
ASSERT(pcstack == NULL || pcstack_limit > 0);
@ -168,6 +168,8 @@ dtrace_getustack_common(uint64_t *pcstack, int pcstack_limit, uintptr_t pc,
*flags &= ~CPU_DTRACE_FAULT;
break;
}
oldfp = fp;
}
return (ret);