Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 2 | |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 3 | #ifndef _M68K_PTRACE_H |
4 | #define _M68K_PTRACE_H | ||||
5 | |||||
6 | /* | ||||
7 | * This struct defines the way the registers are stored on the | ||||
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 8 | * kernel stack during an exception. |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 9 | */ |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 10 | #ifndef __ASSEMBLY__ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 11 | |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 12 | struct pt_regs { |
TsiChung Liew | 8e585f0 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 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 */ | ||||
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 31 | unsigned short sr; |
TsiChung Liew | 8e585f0 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 32 | unsigned long pc; |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 33 | #else |
34 | unsigned short sr; | ||||
TsiChung Liew | 8e585f0 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 35 | unsigned long pc; |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 36 | #endif |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 37 | }; |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 38 | |
TsiChung Liew | 8e585f0 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 39 | #endif /* #ifndef __ASSEMBLY__ */ |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 40 | |
TsiChung Liew | 8e585f0 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 41 | #endif /* #ifndef _M68K_PTRACE_H */ |