blob: 5decf73a1d18658465fe8b8e80452dac4225896b [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
Rasmus Villemoes0d063f32024-10-03 23:27:53 +020012#include <linux/types.h>
13
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 */