blob: 9e788d04a4ef1b9c5d956f578fe4ee53b3bb9c2a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _CRIS_PTRACE_H
2#define _CRIS_PTRACE_H
3
David Howellse717aba2012-10-09 09:46:45 +01004#include <uapi/asm/ptrace.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Adrian Bunkf22ab812008-07-25 01:47:34 -07006
Linus Torvalds1da177e2005-04-16 15:20:36 -07007/* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
8#define PTRACE_GETREGS 12
9#define PTRACE_SETREGS 13
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
Mikael Starvik21783c92005-07-27 11:44:40 -070011#define profile_pc(regs) instruction_pointer(regs)
Al Viro1ca97bb2012-11-18 12:50:10 -050012#define current_user_stack_pointer() rdusp()
Mikael Starvik21783c92005-07-27 11:44:40 -070013
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#endif /* _CRIS_PTRACE_H */