~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/sh/include/asm/ptrace.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#include <asm/system.h>
41
41
 
42
42
#define user_mode(regs)                 (((regs)->sr & 0x40000000)==0)
43
 
#define user_stack_pointer(_regs)       ((unsigned long)(_regs)->regs[15])
44
43
#define kernel_stack_pointer(_regs)     ((unsigned long)(_regs)->regs[15])
45
 
#define instruction_pointer(regs)       ((unsigned long)(regs)->pc)
 
44
 
 
45
#define GET_FP(regs)    ((regs)->regs[14])
 
46
#define GET_USP(regs)   ((regs)->regs[15])
46
47
 
47
48
extern void show_regs(struct pt_regs *);
48
49
 
132
133
 
133
134
static inline unsigned long profile_pc(struct pt_regs *regs)
134
135
{
135
 
        unsigned long pc = instruction_pointer(regs);
 
136
        unsigned long pc = regs->pc;
136
137
 
137
138
        if (virt_addr_uncached(pc))
138
139
                return CAC_ADDR(pc);
139
140
 
140
141
        return pc;
141
142
}
 
143
#define profile_pc profile_pc
 
144
 
 
145
#include <asm-generic/ptrace.h>
142
146
#endif /* __KERNEL__ */
143
147
 
144
148
#endif /* __ASM_SH_PTRACE_H */