drm/radeon: fix voltage setup on hawaii
[linux/fpc-iii.git] / arch / nios2 / include / asm / ptrace.h
blob20fb1cf2dab63238b0e8b464a7b08a447257946e
1 /*
2 * Copyright (C) 2013 Altera Corporation
3 * Copyright (C) 2010 Tobias Klauser <tklauser@distanz.ch>
4 * Copyright (C) 2004 Microtronix Datacom Ltd
6 * based on m68k asm/processor.h
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file "COPYING" in the main directory of this archive
10 * for more details.
13 #ifndef _ASM_NIOS2_PTRACE_H
14 #define _ASM_NIOS2_PTRACE_H
16 #include <uapi/asm/ptrace.h>
18 #ifndef __ASSEMBLY__
19 #define user_mode(regs) (((regs)->estatus & ESTATUS_EU))
21 #define instruction_pointer(regs) ((regs)->ra)
22 #define profile_pc(regs) instruction_pointer(regs)
23 #define user_stack_pointer(regs) ((regs)->sp)
24 extern void show_regs(struct pt_regs *);
26 #define current_pt_regs() \
27 ((struct pt_regs *)((unsigned long)current_thread_info() + THREAD_SIZE)\
28 - 1)
30 int do_syscall_trace_enter(void);
31 void do_syscall_trace_exit(void);
32 #endif /* __ASSEMBLY__ */
33 #endif /* _ASM_NIOS2_PTRACE_H */