Commit | Line | Data |
---|---|---|
5076de82 FF |
1 | /* Parameters for target machine Hewlett-Packard 9000/300, running bsd. |
2 | Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc. | |
3 | ||
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 | |
6c9638b4 | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
5076de82 | 19 | |
0ca9bd12 JK |
20 | /* Configuration file for HP9000/300 series machine running BSD, |
21 | including Utah, Mt. Xinu or Berkeley variants. This is NOT for HP-UX. | |
22 | Problems to hpbsd-bugs@cs.utah.edu. */ | |
5076de82 | 23 | |
56756a5a JK |
24 | /* GCC is the only compiler used on this OS. So get this right even if |
25 | the code which detects gcc2_compiled. is still broken. */ | |
26 | ||
27 | #define BELIEVE_PCC_PROMOTION 1 | |
28 | ||
5076de82 | 29 | /* Define BPT_VECTOR if it is different than the default. |
e7386e32 JL |
30 | This is the vector number used by traps to indicate a breakpoint. |
31 | ||
32 | For hp300bsd the normal breakpoint vector is 0x2 (for debugging via | |
33 | ptrace); for remote kernel debugging the breakpoint vector is 0xf. */ | |
5076de82 FF |
34 | |
35 | #define BPT_VECTOR 0x2 | |
27405a28 | 36 | #define REMOTE_BPT_VECTOR 0xf |
5076de82 FF |
37 | |
38 | #define TARGET_NBPG 4096 | |
0ca9bd12 JK |
39 | |
40 | /* For 4.4 this would be 2, but it is OK for us to detect an area a | |
41 | bit bigger than necessary. This way the same gdb binary can target | |
42 | either 4.3 or 4.4. */ | |
43 | ||
5076de82 FF |
44 | #define TARGET_UPAGES 3 |
45 | ||
46 | /* On the HP300, sigtramp is in the u area. Gak! User struct is not | |
47 | mapped to the same virtual address in user/kernel address space | |
48 | (hence STACK_END_ADDR as opposed to KERNEL_U_ADDR). This tests | |
49 | for the whole u area, since we don't necessarily have hp300bsd | |
50 | include files around. */ | |
0ca9bd12 JK |
51 | |
52 | /* For 4.4, it is actually right 20 bytes *before* STACK_END_ADDR, so | |
53 | include that in the area we test for. */ | |
54 | ||
55 | #define SIGTRAMP_START (STACK_END_ADDR - 20) | |
993583e5 | 56 | #define SIGTRAMP_END (STACK_END_ADDR + TARGET_UPAGES * TARGET_NBPG) |
5076de82 FF |
57 | |
58 | /* Address of end of stack space. */ | |
59 | ||
60 | #define STACK_END_ADDR 0xfff00000 | |
61 | ||
2225eb85 | 62 | #include "m68k/tm-m68k.h" |