diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c index 0e2379d52cb..12737ae0b8d 100644 --- a/sys/kern/subr_prof.c +++ b/sys/kern/subr_prof.c @@ -461,7 +461,7 @@ profil(td, uap) * inaccurate. */ void -addupc_intr(struct thread *td, uintptr_t pc, u_int ticks) +addupc_intr(struct thread *td, uintfptr_t pc, u_int ticks) { struct uprof *prof; caddr_t addr; @@ -495,7 +495,7 @@ addupc_intr(struct thread *td, uintptr_t pc, u_int ticks) * update fails, we simply turn off profiling. */ void -addupc_task(struct thread *td, uintptr_t pc, u_int ticks) +addupc_task(struct thread *td, uintfptr_t pc, u_int ticks) { struct proc *p = td->td_proc; struct uprof *prof; diff --git a/sys/sys/resourcevar.h b/sys/sys/resourcevar.h index 57d0fe73b33..ad8337041ce 100644 --- a/sys/sys/resourcevar.h +++ b/sys/sys/resourcevar.h @@ -104,8 +104,8 @@ struct proc; struct rusage_ext; struct thread; -void addupc_intr(struct thread *td, uintptr_t pc, u_int ticks); -void addupc_task(struct thread *td, uintptr_t pc, u_int ticks); +void addupc_intr(struct thread *td, uintfptr_t pc, u_int ticks); +void addupc_task(struct thread *td, uintfptr_t pc, u_int ticks); void calccru(struct proc *p, struct timeval *up, struct timeval *sp); void calcru(struct proc *p, struct timeval *up, struct timeval *sp); int chgproccnt(struct uidinfo *uip, int diff, int maxval);