xref: /openbmc/u-boot/arch/m68k/include/asm/ptrace.h (revision 72719d2f)
1 /*
2  * SPDX-License-Identifier:	GPL-2.0+
3  */
4 
5 #ifndef _M68K_PTRACE_H
6 #define _M68K_PTRACE_H
7 
8 /*
9  * This struct defines the way the registers are stored on the
10  * kernel stack during an exception.
11  */
12 #ifndef __ASSEMBLY__
13 
14 struct pt_regs {
15 	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 */
33 	unsigned short sr;
34 	unsigned long pc;
35 #else
36 	unsigned short sr;
37 	unsigned long pc;
38 #endif
39 };
40 
41 #endif				/* #ifndef __ASSEMBLY__ */
42 
43 #endif				/* #ifndef _M68K_PTRACE_H */
44