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