svn commit: r368242 - head/sys/cddl/dev/dtrace/riscv

John Baldwin jhb at FreeBSD.org
Tue Dec 1 18:08:23 UTC 2020


Author: jhb
Date: Tue Dec  1 18:08:22 2020
New Revision: 368242
URL: https://svnweb.freebsd.org/changeset/base/368242

Log:
  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

Modified:
  head/sys/cddl/dev/dtrace/riscv/dtrace_isa.c

Modified: head/sys/cddl/dev/dtrace/riscv/dtrace_isa.c
==============================================================================
--- head/sys/cddl/dev/dtrace/riscv/dtrace_isa.c	Tue Dec  1 17:17:22 2020	(r368241)
+++ head/sys/cddl/dev/dtrace/riscv/dtrace_isa.c	Tue Dec  1 18:08:22 2020	(r368242)
@@ -85,9 +85,9 @@ dtrace_getpcstack(pc_t *pcstack, int pcstack_limit, in
 
 	__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);


More information about the svn-src-head mailing list