]>
Commit | Line | Data |
---|---|---|
5140562f JG |
1 | /* Parameters for hosting on an HPPA PA-RISC machine, running BSD, for GDB. |
2 | Copyright 1991, 1992 Free Software Foundation, Inc. | |
7da1e27d SG |
3 | |
4 | Contributed by the Center for Software Science at the | |
5 | University of Utah ([email protected]). | |
6 | ||
7 | This file is part of GDB. | |
8 | ||
5140562f | 9 | This program is free software; you can redistribute it and/or modify |
7da1e27d | 10 | it under the terms of the GNU General Public License as published by |
5140562f JG |
11 | the Free Software Foundation; either version 2 of the License, or |
12 | (at your option) any later version. | |
7da1e27d | 13 | |
5140562f | 14 | This program is distributed in the hope that it will be useful, |
7da1e27d SG |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | GNU General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU General Public License | |
5140562f JG |
20 | along with this program; if not, write to the Free Software |
21 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
7da1e27d | 22 | |
5140562f JG |
23 | /* This is a big-endian host. */ |
24 | ||
25 | #define HOST_BYTE_ORDER BIG_ENDIAN | |
7da1e27d SG |
26 | |
27 | /* Avoid "INT_MIN redefined" warnings -- by defining it here, exactly | |
28 | the same as in the system <machine/machtypes.h> file. */ | |
29 | #undef INT_MIN | |
30 | #define INT_MIN 0x80000000 | |
31 | ||
32 | #ifndef hp800 | |
33 | #define USG | |
34 | #endif | |
35 | ||
36 | ||
37 | #define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \ | |
38 | sp = hp_push_arguments(nargs, args, sp, struct_return, struct_addr) | |
39 | ||
40 | #define KERNEL_U_ADDR 0 | |
41 | ||
42 | /* What a coincidence! */ | |
43 | #define REGISTER_U_ADDR(addr, blockend, regno) \ | |
44 | { addr = (int)(blockend) + REGISTER_BYTE (regno);} | |
45 | ||
7da1e27d | 46 | #define U_REGS_OFFSET 0 |
5140562f JG |
47 | |
48 | #ifndef SEEK_SET | |
49 | # define SEEK_SET 0 /* Set file pointer to "offset" */ | |
50 | # define SEEK_CUR 1 /* Set file pointer to current plus "offset" */ | |
51 | # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ | |
52 | #endif /* SEEK_SET */ |