Since the PC is a pointer to a code address, change the second parameter of

addupc_task() and addupc_intr() to be a uintptr_t instead of a u_long.
This commit is contained in:
John Baldwin 2001-02-22 18:07:31 +00:00
parent f308e0d714
commit 51c9129957
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72912
2 changed files with 4 additions and 4 deletions

View File

@ -405,7 +405,7 @@ profil(p, uap)
void
addupc_intr(p, pc, ticks)
register struct proc *p;
register u_long pc;
register uintptr_t pc;
u_int ticks;
{
register struct uprof *prof;
@ -435,7 +435,7 @@ addupc_intr(p, pc, ticks)
void
addupc_task(p, pc, ticks)
register struct proc *p;
register u_long pc;
register uintptr_t pc;
u_int ticks;
{
register struct uprof *prof;

View File

@ -98,8 +98,8 @@ struct uidinfo {
struct proc;
void addupc_intr __P((struct proc *p, u_long pc, u_int ticks));
void addupc_task __P((struct proc *p, u_long pc, u_int ticks));
void addupc_intr __P((struct proc *p, uintptr_t pc, u_int ticks));
void addupc_task __P((struct proc *p, uintptr_t pc, u_int ticks));
void calcru __P((struct proc *p, struct timeval *up, struct timeval *sp,
struct timeval *ip));
int chgproccnt __P((struct uidinfo *uip, int diff, int max));