Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ptrace.h
Go to the documentation of this file.
1 /* MN10300 Exception frame layout and ptrace constants
2  *
3  * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
4  * Written by David Howells ([email protected])
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public Licence
8  * as published by the Free Software Foundation; either version
9  * 2 of the Licence, or (at your option) any later version.
10  */
11 #ifndef _ASM_PTRACE_H
12 #define _ASM_PTRACE_H
13 
14 #include <uapi/asm/ptrace.h>
15 
16 
17 #define user_mode(regs) (((regs)->epsw & EPSW_nSL) == EPSW_nSL)
18 #define instruction_pointer(regs) ((regs)->pc)
19 #define user_stack_pointer(regs) ((regs)->sp)
20 #define current_pt_regs() current_frame()
21 
22 #define arch_has_single_step() (1)
23 
24 #define profile_pc(regs) ((regs)->pc)
25 
26 #endif /* _ASM_PTRACE_H */