blob: d419824806c3c919d1858b6f42a97b950b9a65b6 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenkabf7a7c2003-12-08 01:34:36 +00002
wdenke65527f2004-02-12 00:47:09 +00003#ifndef _M68K_PTRACE_H
4#define _M68K_PTRACE_H
wdenkabf7a7c2003-12-08 01:34:36 +00005
6/*
wdenke65527f2004-02-12 00:47:09 +00007 * This struct defines the way the registers are stored on the
8 * kernel stack during an exception.
wdenkabf7a7c2003-12-08 01:34:36 +00009 */
wdenke65527f2004-02-12 00:47:09 +000010#ifndef __ASSEMBLY__
wdenkabf7a7c2003-12-08 01:34:36 +000011
wdenke65527f2004-02-12 00:47:09 +000012struct pt_regs {
TsiChung Liewf6afe722007-06-18 13:50:13 -050013 ulong d0;
14 ulong d1;
15 ulong d2;
16 ulong d3;
17 ulong d4;
18 ulong d5;
19 ulong d6;
20 ulong d7;
21 ulong a0;
22 ulong a1;
23 ulong a2;
24 ulong a3;
25 ulong a4;
26 ulong a5;
27 ulong a6;
28#if defined(__M68K__)
29 unsigned format:4; /* frame format specifier */
30 unsigned vector:12; /* vector offset */
wdenke65527f2004-02-12 00:47:09 +000031 unsigned short sr;
TsiChung Liewf6afe722007-06-18 13:50:13 -050032 unsigned long pc;
wdenke65527f2004-02-12 00:47:09 +000033#else
34 unsigned short sr;
TsiChung Liewf6afe722007-06-18 13:50:13 -050035 unsigned long pc;
wdenkabf7a7c2003-12-08 01:34:36 +000036#endif
wdenke65527f2004-02-12 00:47:09 +000037};
wdenkabf7a7c2003-12-08 01:34:36 +000038
TsiChung Liewf6afe722007-06-18 13:50:13 -050039#endif /* #ifndef __ASSEMBLY__ */
wdenkabf7a7c2003-12-08 01:34:36 +000040
TsiChung Liewf6afe722007-06-18 13:50:13 -050041#endif /* #ifndef _M68K_PTRACE_H */