Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _CRIS_PTRACE_H |
| 2 | #define _CRIS_PTRACE_H |
| 3 | |
Jesper Nilsson | 556dcee | 2008-10-21 17:45:58 +0200 | [diff] [blame] | 4 | #include <arch/ptrace.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
| 6 | #ifdef __KERNEL__ |
Adrian Bunk | f22ab81 | 2008-07-25 01:47:34 -0700 | [diff] [blame] | 7 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */ |
| 9 | #define PTRACE_GETREGS 12 |
| 10 | #define PTRACE_SETREGS 13 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
Mikael Starvik | 21783c9 | 2005-07-27 11:44:40 -0700 | [diff] [blame] | 12 | #define profile_pc(regs) instruction_pointer(regs) |
Al Viro | 1ca97bb | 2012-11-18 12:50:10 -0500 | [diff] [blame^] | 13 | #define current_user_stack_pointer() rdusp() |
Mikael Starvik | 21783c9 | 2005-07-27 11:44:40 -0700 | [diff] [blame] | 14 | |
Adrian Bunk | f22ab81 | 2008-07-25 01:47:34 -0700 | [diff] [blame] | 15 | #endif /* __KERNEL__ */ |
| 16 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | #endif /* _CRIS_PTRACE_H */ |