blob: d3a8a2970ec4cfe0b110310ed87cef3477f8e9f9 [file] [log] [blame]
wdenkabf7a7c2003-12-08 01:34:36 +00001/*
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02002 * SPDX-License-Identifier: GPL-2.0+
wdenkabf7a7c2003-12-08 01:34:36 +00003 */
4
wdenke65527f2004-02-12 00:47:09 +00005#ifndef _M68K_PTRACE_H
6#define _M68K_PTRACE_H
wdenkabf7a7c2003-12-08 01:34:36 +00007
8/*
wdenke65527f2004-02-12 00:47:09 +00009 * This struct defines the way the registers are stored on the
10 * kernel stack during an exception.
wdenkabf7a7c2003-12-08 01:34:36 +000011 */
wdenke65527f2004-02-12 00:47:09 +000012#ifndef __ASSEMBLY__
wdenkabf7a7c2003-12-08 01:34:36 +000013
wdenke65527f2004-02-12 00:47:09 +000014struct pt_regs {
TsiChung Liewf6afe722007-06-18 13:50:13 -050015 ulong d0;
16 ulong d1;
17 ulong d2;
18 ulong d3;
19 ulong d4;
20 ulong d5;
21 ulong d6;
22 ulong d7;
23 ulong a0;
24 ulong a1;
25 ulong a2;
26 ulong a3;
27 ulong a4;
28 ulong a5;
29 ulong a6;
30#if defined(__M68K__)
31 unsigned format:4; /* frame format specifier */
32 unsigned vector:12; /* vector offset */
wdenke65527f2004-02-12 00:47:09 +000033 unsigned short sr;
TsiChung Liewf6afe722007-06-18 13:50:13 -050034 unsigned long pc;
wdenke65527f2004-02-12 00:47:09 +000035#else
36 unsigned short sr;
TsiChung Liewf6afe722007-06-18 13:50:13 -050037 unsigned long pc;
wdenkabf7a7c2003-12-08 01:34:36 +000038#endif
wdenke65527f2004-02-12 00:47:09 +000039};
wdenkabf7a7c2003-12-08 01:34:36 +000040
TsiChung Liewf6afe722007-06-18 13:50:13 -050041#endif /* #ifndef __ASSEMBLY__ */
wdenkabf7a7c2003-12-08 01:34:36 +000042
TsiChung Liewf6afe722007-06-18 13:50:13 -050043#endif /* #ifndef _M68K_PTRACE_H */