]>
Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* Macro definitions for ns532, Mach 3.0 |
2 | Copyright (C) 1992 Free Software Foundation, Inc. | |
3 | ||
c5aa993b JM |
4 | This file is part of GDB. |
5 | ||
6 | This program is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 2 of the License, or | |
9 | (at your option) any later version. | |
10 | ||
11 | This program is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with this program; if not, write to the Free Software | |
18 | Foundation, Inc., 59 Temple Place - Suite 330, | |
19 | Boston, MA 02111-1307, USA. */ | |
c906108c SS |
20 | |
21 | /* Include common definitions for Mach3 systems */ | |
22 | #include "nm-m3.h" | |
23 | ||
24 | /* Define offsets to access CPROC stack when it does not have | |
25 | * a kernel thread. | |
26 | */ | |
27 | #define MACHINE_CPROC_SP_OFFSET 20 | |
28 | #define MACHINE_CPROC_PC_OFFSET 16 | |
29 | #define MACHINE_CPROC_FP_OFFSET 12 | |
30 | ||
31 | #include <ns532/psl.h> | |
32 | #include <ns532/vmparam.h> | |
33 | ||
34 | /* Thread flavors used in re-setting the T bit. | |
35 | * @@ this is also bad for cross debugging. | |
36 | */ | |
37 | #define TRACE_FLAVOR NS532_THREAD_STATE | |
38 | #define TRACE_FLAVOR_SIZE NS532_THREAD_STATE_COUNT | |
39 | #define TRACE_SET(x,state) \ | |
40 | ((struct ns532_thread_state *)state)->psr |= PSR_T | |
41 | #define TRACE_CLEAR(x,state) \ | |
42 | ((((struct ns532_thread_state *)state)->psr &= ~PSR_T), 1) | |
43 | ||
44 | /* we can do it */ | |
45 | #define ATTACH_DETACH 1 | |
46 | ||
47 | /* Address of end of stack space. | |
48 | * for MACH, see <ns532/vmparam.h> | |
49 | */ | |
50 | #define STACK_END_ADDR USRSTACK | |
51 | ||
52 | #include "ns32k/tm-umax.h" | |
53 | ||
54 | /* tm-umax.h assumes a 32082 fpu. We have a 32382 fpu. */ | |
55 | #undef REGISTER_NAMES | |
56 | #undef NUM_REGS | |
57 | #undef REGISTER_BYTES | |
58 | /* Initializer for an array of names of registers. | |
59 | There should be NUM_REGS strings in this initializer. */ | |
60 | ||
61 | #define REGISTER_NAMES {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \ | |
62 | "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", \ | |
63 | "sp", "fp", "pc", "ps", \ | |
64 | "fsr", \ | |
65 | "l0", "l1", "l2", "l3", "l4", "l5", "l6", "l7", "xx", \ | |
66 | } | |
67 | ||
68 | #define NUM_REGS 29 | |
69 | ||
70 | /* Total amount of space needed to store our copies of the machine's | |
71 | register state, the array `registers'. */ | |
72 | #define REGISTER_BYTES \ | |
73 | ((NUM_REGS - 4) * REGISTER_RAW_SIZE(R0_REGNUM) \ | |
74 | + 8 * REGISTER_RAW_SIZE(LP0_REGNUM)) |