2003-02-04 Michael Chastain <mec@shout.net>
[deliverable/binutils-gdb.git] / gdb / config / m68k / tm-hp300bsd.h
CommitLineData
c906108c 1/* Parameters for target machine Hewlett-Packard 9000/300, running bsd.
b6ba6518
KB
2 Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1996
3 Free Software Foundation, Inc.
c906108c 4
c5aa993b
JM
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
c906108c
SS
21
22/* Configuration file for HP9000/300 series machine running BSD,
23 including Utah, Mt. Xinu or Berkeley variants. This is NOT for HP-UX.
24 Problems to hpbsd-bugs@cs.utah.edu. */
25
26/* GCC is the only compiler used on this OS. So get this right even if
27 the code which detects gcc2_compiled. is still broken. */
28
29#define BELIEVE_PCC_PROMOTION 1
30
31/* Define BPT_VECTOR if it is different than the default.
32 This is the vector number used by traps to indicate a breakpoint.
33
34 For hp300bsd the normal breakpoint vector is 0x2 (for debugging via
35 ptrace); for remote kernel debugging the breakpoint vector is 0xf. */
36
37#define BPT_VECTOR 0x2
38#define REMOTE_BPT_VECTOR 0xf
39
40#define TARGET_NBPG 4096
41
42/* For 4.4 this would be 2, but it is OK for us to detect an area a
43 bit bigger than necessary. This way the same gdb binary can target
44 either 4.3 or 4.4. */
45
46#define TARGET_UPAGES 3
47
48/* On the HP300, sigtramp is in the u area. Gak! User struct is not
49 mapped to the same virtual address in user/kernel address space
50 (hence STACK_END_ADDR as opposed to KERNEL_U_ADDR). This tests
51 for the whole u area, since we don't necessarily have hp300bsd
52 include files around. */
53
54/* For 4.4, it is actually right 20 bytes *before* STACK_END_ADDR, so
55 include that in the area we test for. */
56
57#define SIGTRAMP_START(pc) (STACK_END_ADDR - 20)
58#define SIGTRAMP_END(pc) (STACK_END_ADDR + TARGET_UPAGES * TARGET_NBPG)
59
60/* Address of end of stack space. */
61
62#define STACK_END_ADDR 0xfff00000
63
64#include "m68k/tm-m68k.h"
This page took 0.230945 seconds and 4 git commands to generate.