wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 1 | /* |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 2 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 3 | */ |
4 | |||||
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 5 | #ifndef _M68K_PTRACE_H |
6 | #define _M68K_PTRACE_H | ||||
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 7 | |
8 | /* | ||||
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 9 | * This struct defines the way the registers are stored on the |
10 | * kernel stack during an exception. | ||||
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 11 | */ |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 12 | #ifndef __ASSEMBLY__ |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 13 | |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 14 | struct pt_regs { |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 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 */ | ||||
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 33 | unsigned short sr; |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 34 | unsigned long pc; |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 35 | #else |
36 | unsigned short sr; | ||||
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 37 | unsigned long pc; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 38 | #endif |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 39 | }; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 40 | |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 41 | #endif /* #ifndef __ASSEMBLY__ */ |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 42 | |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 43 | #endif /* #ifndef _M68K_PTRACE_H */ |