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