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