Update FSF address.
[deliverable/binutils-gdb.git] / gdb / config / m68k / xm-hp300bsd.h
CommitLineData
5076de82
FF
1/* Parameters for hosting on a Hewlett-Packard 9000/300, running bsd.
2 Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
6c9638b4 18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
5076de82
FF
19
20/*
21 * Configuration file for HP9000/300 series machine running
22 * University of Utah's 4.3bsd (or 4.4BSD) port. This is NOT for HP-UX.
23 * Problems to hpbsd-bugs@cs.utah.edu
24 */
25
26#define HOST_BYTE_ORDER BIG_ENDIAN
27
d2712f02
JK
28/* Avoid "INT_MIN redefined" preprocessor warnings by defining them here. */
29#include <sys/param.h>
5076de82 30
5076de82
FF
31/* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */
32#define ONE_PROCESS_WRITETEXT
33
5076de82
FF
34extern char *strdup PARAMS ((const char *));
35\f
36/* Interface definitions for kernel debugger KDB. */
37
38/* Map machine fault codes into signal numbers.
39 First subtract 0, divide by 4, then index in a table.
40 Faults for which the entry in this table is 0
41 are not handled by KDB; the program's own trap handler
42 gets to handle then. */
43
44#define FAULT_CODE_ORIGIN 0
45#define FAULT_CODE_UNITS 4
46#define FAULT_TABLE \
47{ 0, 0, 0, 0, SIGTRAP, 0, 0, 0, \
48 0, SIGTRAP, 0, 0, 0, 0, 0, SIGKILL, \
49 0, 0, 0, 0, 0, 0, 0, 0, \
50 SIGILL }
51
52/* Start running with a stack stretching from BEG to END.
53 BEG and END should be symbols meaningful to the assembler.
54 This is used only for kdb. */
55
56#define INIT_STACK(beg, end) \
57{ asm (".globl end"); \
58 asm ("movel #end, sp"); \
59 asm ("movel #0,a6"); }
60
61/* Push the frame pointer register on the stack. */
62#define PUSH_FRAME_PTR \
63 asm ("movel a6,sp@-");
64
65/* Copy the top-of-stack to the frame pointer register. */
66#define POP_FRAME_PTR \
67 asm ("movl sp@,a6");
68
69/* After KDB is entered by a fault, push all registers
70 that GDB thinks about (all NUM_REGS of them),
71 so that they appear in order of ascending GDB register number.
72 The fault code will be on the stack beyond the last register. */
73
74#define PUSH_REGISTERS \
75{ asm ("clrw -(sp)"); \
76 asm ("pea sp@(10)"); \
77 asm ("movem #0xfffe,sp@-"); }
78
79/* Assuming the registers (including processor status) have been
80 pushed on the stack in order of ascending GDB register number,
81 restore them and return to the address in the saved PC register. */
82
83#define POP_REGISTERS \
84{ asm ("subil #8,sp@(28)"); \
85 asm ("movem sp@,#0xffff"); \
86 asm ("rte"); }
This page took 0.139318 seconds and 4 git commands to generate.