blob: d3a8a2970ec4cfe0b110310ed87cef3477f8e9f9 [file] [log] [blame]
wdenkbf9e3b32004-02-12 00:47:09 +00001/*
Wolfgang Denk1a459662013-07-08 09:37:19 +02002 * SPDX-License-Identifier: GPL-2.0+
wdenkbf9e3b32004-02-12 00:47:09 +00003 */
4
wdenk4e5ca3e2003-12-08 01:34:36 +00005#ifndef _M68K_PTRACE_H
6#define _M68K_PTRACE_H
7
8/*
9 * This struct defines the way the registers are stored on the
wdenkbf9e3b32004-02-12 00:47:09 +000010 * kernel stack during an exception.
wdenk4e5ca3e2003-12-08 01:34:36 +000011 */
wdenk4e5ca3e2003-12-08 01:34:36 +000012#ifndef __ASSEMBLY__
wdenkbf9e3b32004-02-12 00:47:09 +000013
wdenk4e5ca3e2003-12-08 01:34:36 +000014struct pt_regs {
TsiChung Liew8e585f02007-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 */
wdenkbf9e3b32004-02-12 00:47:09 +000033 unsigned short sr;
TsiChung Liew8e585f02007-06-18 13:50:13 -050034 unsigned long pc;
wdenkbf9e3b32004-02-12 00:47:09 +000035#else
36 unsigned short sr;
TsiChung Liew8e585f02007-06-18 13:50:13 -050037 unsigned long pc;
wdenkbf9e3b32004-02-12 00:47:09 +000038#endif
wdenk4e5ca3e2003-12-08 01:34:36 +000039};
wdenk4e5ca3e2003-12-08 01:34:36 +000040
TsiChung Liew8e585f02007-06-18 13:50:13 -050041#endif /* #ifndef __ASSEMBLY__ */
wdenk4e5ca3e2003-12-08 01:34:36 +000042
TsiChung Liew8e585f02007-06-18 13:50:13 -050043#endif /* #ifndef _M68K_PTRACE_H */