Use uintptr_t for pointers in stack frames.

This catches up to the changes made to struct unwind_state in r364180.

Reviewed by:	mhorne
Obtained from:	CheriBSD
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D27360
This commit is contained in:
John Baldwin 2020-12-01 18:08:22 +00:00
parent f2dceb474b
commit fdd947e4ce

View File

@ -85,9 +85,9 @@ dtrace_getpcstack(pc_t *pcstack, int pcstack_limit, int aframes,
__asm __volatile("mv %0, sp" : "=&r" (sp));
state.fp = (uint64_t)__builtin_frame_address(0);
state.fp = (uintptr_t)__builtin_frame_address(0);
state.sp = sp;
state.pc = (uint64_t)dtrace_getpcstack;
state.pc = (uintptr_t)dtrace_getpcstack;
while (depth < pcstack_limit) {
if (unwind_frame(&state))
@ -266,9 +266,9 @@ dtrace_getstackdepth(int aframes)
__asm __volatile("mv %0, sp" : "=&r" (sp));
state.fp = (uint64_t)__builtin_frame_address(0);
state.fp = (uintptr_t)__builtin_frame_address(0);
state.sp = sp;
state.pc = (uint64_t)dtrace_getstackdepth;
state.pc = (uintptr_t)dtrace_getstackdepth;
do {
done = unwind_frame(&state);