blob: d419824806c3c919d1858b6f42a97b950b9a65b6 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenkbf9e3b32004-02-12 00:47:09 +00002
wdenk4e5ca3e2003-12-08 01:34:36 +00003#ifndef _M68K_PTRACE_H
4#define _M68K_PTRACE_H
5
6/*
7 * This struct defines the way the registers are stored on the
wdenkbf9e3b32004-02-12 00:47:09 +00008 * kernel stack during an exception.
wdenk4e5ca3e2003-12-08 01:34:36 +00009 */
wdenk4e5ca3e2003-12-08 01:34:36 +000010#ifndef __ASSEMBLY__
wdenkbf9e3b32004-02-12 00:47:09 +000011
wdenk4e5ca3e2003-12-08 01:34:36 +000012struct pt_regs {
TsiChung Liew8e585f02007-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 */
wdenkbf9e3b32004-02-12 00:47:09 +000031 unsigned short sr;
TsiChung Liew8e585f02007-06-18 13:50:13 -050032 unsigned long pc;
wdenkbf9e3b32004-02-12 00:47:09 +000033#else
34 unsigned short sr;
TsiChung Liew8e585f02007-06-18 13:50:13 -050035 unsigned long pc;
wdenkbf9e3b32004-02-12 00:47:09 +000036#endif
wdenk4e5ca3e2003-12-08 01:34:36 +000037};
wdenk4e5ca3e2003-12-08 01:34:36 +000038
TsiChung Liew8e585f02007-06-18 13:50:13 -050039#endif /* #ifndef __ASSEMBLY__ */
wdenk4e5ca3e2003-12-08 01:34:36 +000040
TsiChung Liew8e585f02007-06-18 13:50:13 -050041#endif /* #ifndef _M68K_PTRACE_H */