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:
parent
f308e0d714
commit
51c9129957
@ -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;
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user