blob: 01535beb15d644646c5abb186ec5dd72e42b0390 [file] [log] [blame]
wdenkabf7a7c2003-12-08 01:34:36 +00001/*
wdenke65527f2004-02-12 00:47:09 +00002 * See file CREDITS for list of people who contributed to this
3 * project.
wdenkabf7a7c2003-12-08 01:34:36 +00004 *
wdenke65527f2004-02-12 00:47:09 +00005 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
wdenkabf7a7c2003-12-08 01:34:36 +00009 *
wdenke65527f2004-02-12 00:47:09 +000010 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
wdenkabf7a7c2003-12-08 01:34:36 +000014 *
wdenke65527f2004-02-12 00:47:09 +000015 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18 * MA 02111-1307 USA
wdenkabf7a7c2003-12-08 01:34:36 +000019 */
20
wdenke65527f2004-02-12 00:47:09 +000021#ifndef _M68K_PTRACE_H
22#define _M68K_PTRACE_H
wdenkabf7a7c2003-12-08 01:34:36 +000023
24/*
wdenke65527f2004-02-12 00:47:09 +000025 * This struct defines the way the registers are stored on the
26 * kernel stack during an exception.
wdenkabf7a7c2003-12-08 01:34:36 +000027 */
wdenke65527f2004-02-12 00:47:09 +000028#ifndef __ASSEMBLY__
wdenkabf7a7c2003-12-08 01:34:36 +000029
wdenke65527f2004-02-12 00:47:09 +000030struct pt_regs {
TsiChung Liewf6afe722007-06-18 13:50:13 -050031 ulong d0;
32 ulong d1;
33 ulong d2;
34 ulong d3;
35 ulong d4;
36 ulong d5;
37 ulong d6;
38 ulong d7;
39 ulong a0;
40 ulong a1;
41 ulong a2;
42 ulong a3;
43 ulong a4;
44 ulong a5;
45 ulong a6;
46#if defined(__M68K__)
47 unsigned format:4; /* frame format specifier */
48 unsigned vector:12; /* vector offset */
wdenke65527f2004-02-12 00:47:09 +000049 unsigned short sr;
TsiChung Liewf6afe722007-06-18 13:50:13 -050050 unsigned long pc;
wdenke65527f2004-02-12 00:47:09 +000051#else
52 unsigned short sr;
TsiChung Liewf6afe722007-06-18 13:50:13 -050053 unsigned long pc;
wdenkabf7a7c2003-12-08 01:34:36 +000054#endif
wdenke65527f2004-02-12 00:47:09 +000055};
wdenkabf7a7c2003-12-08 01:34:36 +000056
TsiChung Liewf6afe722007-06-18 13:50:13 -050057#endif /* #ifndef __ASSEMBLY__ */
wdenkabf7a7c2003-12-08 01:34:36 +000058
TsiChung Liewf6afe722007-06-18 13:50:13 -050059#endif /* #ifndef _M68K_PTRACE_H */