blob: 551c081ab62b07dbf015bd18644ac55c60ab2eeb [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _CRIS_PTRACE_H
2#define _CRIS_PTRACE_H
3
Jesper Nilsson556dcee2008-10-21 17:45:58 +02004#include <arch/ptrace.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
6#ifdef __KERNEL__
Adrian Bunkf22ab812008-07-25 01:47:34 -07007
Linus Torvalds1da177e2005-04-16 15:20:36 -07008/* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
9#define PTRACE_GETREGS 12
10#define PTRACE_SETREGS 13
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
Mikael Starvik21783c92005-07-27 11:44:40 -070012#define profile_pc(regs) instruction_pointer(regs)
Al Viro1ca97bb2012-11-18 12:50:10 -050013#define current_user_stack_pointer() rdusp()
Mikael Starvik21783c92005-07-27 11:44:40 -070014
Adrian Bunkf22ab812008-07-25 01:47:34 -070015#endif /* __KERNEL__ */
16
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#endif /* _CRIS_PTRACE_H */