Commit | Line | Data |
---|---|---|
b920de1b DH |
1 | /* MN10300 Exception frame layout and ptrace constants |
2 | * | |
3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | |
4 | * Written by David Howells (dhowells@redhat.com) | |
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 | ||
3b2267e0 | 14 | #include <uapi/asm/ptrace.h> |
b920de1b | 15 | |
f22ab814 | 16 | |
b920de1b DH |
17 | #define user_mode(regs) (((regs)->epsw & EPSW_nSL) == EPSW_nSL) |
18 | #define instruction_pointer(regs) ((regs)->pc) | |
5d289964 | 19 | #define user_stack_pointer(regs) ((regs)->sp) |
5d289964 DH |
20 | |
21 | #define arch_has_single_step() (1) | |
5d289964 | 22 | |
b920de1b DH |
23 | #define profile_pc(regs) ((regs)->pc) |
24 | ||
25 | #endif /* _ASM_PTRACE_H */ |