| Aurelien Jacquiot | 52679b2 | 2011-10-04 11:13:21 -0400 | [diff] [blame] | 1 | /* | 
 | 2 |  *  Copyright (C) 2004, 2006, 2009, 2010 Texas Instruments Incorporated | 
 | 3 |  *  Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com) | 
 | 4 |  * | 
 | 5 |  *  Updated for 2.6.34: Mark Salter <msalter@redhat.com> | 
 | 6 |  * | 
 | 7 |  *  This program is free software; you can redistribute it and/or modify | 
 | 8 |  *  it under the terms of the GNU General Public License version 2 as | 
 | 9 |  *  published by the Free Software Foundation. | 
 | 10 |  */ | 
 | 11 | #ifndef _ASM_C6X_PTRACE_H | 
 | 12 | #define _ASM_C6X_PTRACE_H | 
 | 13 |  | 
| David Howells | fbdd63d | 2012-10-09 09:46:40 +0100 | [diff] [blame] | 14 | #include <uapi/asm/ptrace.h> | 
| Mark Salter | fce2447 | 2012-04-23 10:02:08 -0400 | [diff] [blame] | 15 |  | 
| Aurelien Jacquiot | 52679b2 | 2011-10-04 11:13:21 -0400 | [diff] [blame] | 16 | #ifndef __ASSEMBLY__ | 
| Aurelien Jacquiot | 52679b2 | 2011-10-04 11:13:21 -0400 | [diff] [blame] | 17 | #ifdef _BIG_ENDIAN | 
| Aurelien Jacquiot | 52679b2 | 2011-10-04 11:13:21 -0400 | [diff] [blame] | 18 | #else | 
| Aurelien Jacquiot | 52679b2 | 2011-10-04 11:13:21 -0400 | [diff] [blame] | 19 | #endif | 
 | 20 |  | 
| Aurelien Jacquiot | 52679b2 | 2011-10-04 11:13:21 -0400 | [diff] [blame] | 21 | #include <linux/linkage.h> | 
 | 22 |  | 
 | 23 | #define user_mode(regs)	((((regs)->tsr) & 0x40) != 0) | 
 | 24 |  | 
 | 25 | #define instruction_pointer(regs) ((regs)->pc) | 
 | 26 | #define profile_pc(regs) instruction_pointer(regs) | 
 | 27 | #define user_stack_pointer(regs) ((regs)->sp) | 
 | 28 |  | 
 | 29 | extern void show_regs(struct pt_regs *); | 
 | 30 |  | 
 | 31 | extern asmlinkage unsigned long syscall_trace_entry(struct pt_regs *regs); | 
 | 32 | extern asmlinkage void syscall_trace_exit(struct pt_regs *regs); | 
 | 33 |  | 
| Aurelien Jacquiot | 52679b2 | 2011-10-04 11:13:21 -0400 | [diff] [blame] | 34 | #endif /* __ASSEMBLY__ */ | 
 | 35 | #endif /* _ASM_C6X_PTRACE_H */ |