blob: 838a3830010ef7cb9f094f4cc6c1260d68960f8a [file] [log] [blame]
David Howellsb920de12008-02-08 04:19:31 -08001/* 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
David Howells3b2267e2012-10-10 12:10:10 +010014#include <uapi/asm/ptrace.h>
David Howellsb920de12008-02-08 04:19:31 -080015
Adrian Bunkf22ab812008-07-25 01:47:34 -070016
David Howellsb920de12008-02-08 04:19:31 -080017#define user_mode(regs) (((regs)->epsw & EPSW_nSL) == EPSW_nSL)
18#define instruction_pointer(regs) ((regs)->pc)
David Howells5d289962009-06-11 13:08:37 +010019#define user_stack_pointer(regs) ((regs)->sp)
Al Viro8f1597e2012-09-19 13:08:13 -040020#define current_pt_regs() current_frame()
David Howells5d289962009-06-11 13:08:37 +010021
22#define arch_has_single_step() (1)
David Howells5d289962009-06-11 13:08:37 +010023
David Howellsb920de12008-02-08 04:19:31 -080024#define profile_pc(regs) ((regs)->pc)
25
David Howellsb920de12008-02-08 04:19:31 -080026#endif /* _ASM_PTRACE_H */