wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 1 | /* |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 2 | * See file CREDITS for list of people who contributed to this |
| 3 | * project. |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 4 | * |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License as |
| 7 | * published by the Free Software Foundation; either version 2 of |
| 8 | * the License, or (at your option) any later version. |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 9 | * |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 14 | * |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 18 | * MA 02111-1307 USA |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 21 | #ifndef _M68K_PTRACE_H |
| 22 | #define _M68K_PTRACE_H |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 23 | |
| 24 | /* |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 25 | * This struct defines the way the registers are stored on the |
| 26 | * kernel stack during an exception. |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 27 | */ |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 28 | #ifndef __ASSEMBLY__ |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 29 | |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 30 | struct pt_regs { |
| 31 | ulong d0; |
| 32 | ulong d1; |
| 33 | ulong d2; |
| 34 | ulong d3; |
| 35 | ulong d4; |
| 36 | ulong d5; |
| 37 | ulong d6; |
| 38 | ulong d7; |
| 39 | ulong a0; |
| 40 | ulong a1; |
| 41 | ulong a2; |
| 42 | ulong a3; |
| 43 | ulong a4; |
| 44 | ulong a5; |
| 45 | ulong a6; |
Zachary P. Landau | 0bba862 | 2006-01-26 17:35:56 -0500 | [diff] [blame] | 46 | #if defined(CONFIG_M5272) || defined(CONFIG_M5282) || defined(CONFIG_M5249) || defined(CONFIG_M5271) |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 47 | unsigned format : 4; /* frame format specifier */ |
| 48 | unsigned vector : 12; /* vector offset */ |
| 49 | unsigned short sr; |
| 50 | unsigned long pc; |
| 51 | #else |
| 52 | unsigned short sr; |
| 53 | unsigned long pc; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 54 | #endif |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 55 | }; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 56 | |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 57 | #endif /* #ifndef __ASSEMBLY__ */ |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 58 | |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 59 | #endif /* #ifndef _M68K_PTRACE_H */ |