Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10478
b: refs/heads/master
c: 5cd55b0
h: refs/heads/master
v: v3
  • Loading branch information
Randolph Chung authored and Kyle McMartin committed Oct 22, 2005
1 parent ccc9b8b commit 00e096b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 951a0150135c46c7791d68e0d1112900d99302d7
refs/heads/master: 5cd55b0edee7f979530c86b23728d461ddeb9f3f
18 changes: 18 additions & 0 deletions trunk/arch/parisc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,24 @@ irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
return IRQ_HANDLED;
}


unsigned long profile_pc(struct pt_regs *regs)
{
unsigned long pc = instruction_pointer(regs);

if (regs->gr[0] & PSW_N)
pc -= 4;

#ifdef CONFIG_SMP
if (in_lock_functions(pc))
pc = regs->gr[2];
#endif

return pc;
}
EXPORT_SYMBOL(profile_pc);


/*** converted from ia64 ***/
/*
* Return the number of micro-seconds that elapsed since the last
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-parisc/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct pt_regs {
#define user_mode(regs) (((regs)->iaoq[0] & 3) ? 1 : 0)
#define user_space(regs) (((regs)->iasq[1] != 0) ? 1 : 0)
#define instruction_pointer(regs) ((regs)->iaoq[0] & ~3)
#define profile_pc(regs) instruction_pointer(regs)
unsigned long profile_pc(struct pt_regs *);
extern void show_regs(struct pt_regs *);
#endif

Expand Down

0 comments on commit 00e096b

Please sign in to comment.