From cb49fcd1454855d23a1f4a88de686cc296986aa0 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 16 Dec 2005 22:08:32 +0000 Subject: Change the addupc_*() functions to use the uintfptr_t type for pc rather than uintptr_t as that is technically more correct. --- sys/kern/subr_prof.c | 4 ++-- sys/sys/resourcevar.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c index 0e2379d52cb3..12737ae0b8db 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 57d0fe73b336..ad8337041ce3 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); -- cgit v1.2.3