massive sanitization fixes
[deliverable/binutils-gdb.git] / gdb / config / mips / tm-mipsm3.h
CommitLineData
c2d751d5
JK
1/* Definitions to make GDB run on a mips box under Mach 3.0
2 Copyright (C) 1992 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. */
c2d751d5
JK
19
20/* Mach specific definitions for little endian mips (e.g. pmax)
21 * running Mach 3.0
22 *
23 * Author: Jukka Virtanen <jtv@hut.fi>
24 */
25
26/* Include common definitions for Mach3 systems */
5d76c8e6 27#include "nm-m3.h"
c2d751d5
JK
28
29/* Define offsets to access CPROC stack when it does not have
30 * a kernel thread.
31 */
32
33/* From mk/user/threads/mips/csw.s */
34#define SAVED_FP (12*4)
35#define SAVED_PC (13*4)
36#define SAVED_BYTES (14*4)
37
38/* Using these, define our offsets to items strored in
39 * cproc_switch in csw.s
40 */
41#define MACHINE_CPROC_SP_OFFSET SAVED_BYTES
42#define MACHINE_CPROC_PC_OFFSET SAVED_PC
43#define MACHINE_CPROC_FP_OFFSET SAVED_FP
44
45/* Thread flavors used in setting the Trace state.
46 *
47 * In <mach/machine/thread_status.h>
48 */
49#define TRACE_FLAVOR MIPS_EXC_STATE
50#define TRACE_FLAVOR_SIZE MIPS_EXC_STATE_COUNT
51#define TRACE_SET(x,state) ((struct mips_exc_state *)state)->cause = EXC_SST;
52#define TRACE_CLEAR(x,state) 0
53
54/* Mach supports attach/detach */
55#define ATTACH_DETACH 1
56
5d76c8e6 57#include "mips/tm-mips.h"
c2d751d5 58
c2d751d5
JK
59/* Address of end of user stack space.
60 * for MACH, see <machine/vmparam.h>
61 */
62#undef STACK_END_ADDR
63#define STACK_END_ADDR USRSTACK
64
c2d751d5
JK
65/* Output registers in tabular format */
66#define TABULAR_REGISTER_OUTPUT
This page took 0.18368 seconds and 4 git commands to generate.