Skip to content

Commit

Permalink
arch/unicore32/include/asm/ptrace.h: add generic definition for profi…
Browse files Browse the repository at this point in the history
…le_pc()

Add generic definition just like another architectures have done, or
can not pass compiling with allmodconfig, the related error:

    CC      kernel/profile.o
  kernel/profile.c: In function 'profile_tick':
  kernel/profile.c:419: error: implicit declaration of function 'profile_pc'
  make[1]: *** [kernel/profile.o] Error 1
  make: *** [kernel] Error 2

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
Signed-off-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
  • Loading branch information
Chen Gang authored and Guan Xuetao committed Jun 20, 2014
1 parent 1ff38c5 commit 1febf61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/unicore32/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ static inline int valid_user_regs(struct pt_regs *regs)

#define instruction_pointer(regs) ((regs)->UCreg_pc)
#define user_stack_pointer(regs) ((regs)->UCreg_sp)
#define profile_pc(regs) instruction_pointer(regs)

#endif /* __ASSEMBLY__ */
#endif

0 comments on commit 1febf61

Please sign in to comment.