WIP FPC-III support
[linux/fpc-iii.git] / arch / c6x / include / asm / ptrace.h
blob7cbae382cf3736dd0f8774ab12fce45866d20f60
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2004, 2006, 2009, 2010 Texas Instruments Incorporated
4 * Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com)
6 * Updated for 2.6.34: Mark Salter <msalter@redhat.com>
7 */
8 #ifndef _ASM_C6X_PTRACE_H
9 #define _ASM_C6X_PTRACE_H
11 #include <uapi/asm/ptrace.h>
13 #ifndef __ASSEMBLY__
14 #ifdef _BIG_ENDIAN
15 #else
16 #endif
18 #include <linux/linkage.h>
20 #define user_mode(regs) ((((regs)->tsr) & 0x40) != 0)
22 #define instruction_pointer(regs) ((regs)->pc)
23 #define profile_pc(regs) instruction_pointer(regs)
24 #define user_stack_pointer(regs) ((regs)->sp)
26 extern void show_regs(struct pt_regs *);
28 extern asmlinkage unsigned long syscall_trace_entry(struct pt_regs *regs);
29 extern asmlinkage void syscall_trace_exit(struct pt_regs *regs);
31 #endif /* __ASSEMBLY__ */
32 #endif /* _ASM_C6X_PTRACE_H */