OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [config/] [m68k/] [xm-news.h] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* OBSOLETE /* Parameters for execution on a Sony/NEWS, for GDB, the GNU debugger. */
2
/* OBSOLETE    Copyright 1987, 1989, 1992, 1993, 1994, 1996 */
3
/* OBSOLETE    Free Software Foundation, Inc. */
4
/* OBSOLETE  */
5
/* OBSOLETE    This file is part of GDB. */
6
/* OBSOLETE  */
7
/* OBSOLETE    This program is free software; you can redistribute it and/or modify */
8
/* OBSOLETE    it under the terms of the GNU General Public License as published by */
9
/* OBSOLETE    the Free Software Foundation; either version 2 of the License, or */
10
/* OBSOLETE    (at your option) any later version. */
11
/* OBSOLETE  */
12
/* OBSOLETE    This program is distributed in the hope that it will be useful, */
13
/* OBSOLETE    but WITHOUT ANY WARRANTY; without even the implied warranty of */
14
/* OBSOLETE    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the */
15
/* OBSOLETE    GNU General Public License for more details. */
16
/* OBSOLETE  */
17
/* OBSOLETE    You should have received a copy of the GNU General Public License */
18
/* OBSOLETE    along with this program; if not, write to the Free Software */
19
/* OBSOLETE    Foundation, Inc., 59 Temple Place - Suite 330, */
20
/* OBSOLETE    Boston, MA 02111-1307, USA.  */ */
21
/* OBSOLETE  */
22
/* OBSOLETE #define HOST_BYTE_ORDER BIG_ENDIAN */
23
/* OBSOLETE  */
24
/* OBSOLETE #include <sys/param.h>              /* For INT_MIN */ */
25
/* OBSOLETE  */
26
/* OBSOLETE #define HAVE_WAIT_STRUCT */
27
/* OBSOLETE  */
28
/* OBSOLETE /* We can't use "isatty" or "fileno" on this machine.  This isn't good, */
29
/* OBSOLETE    but it will have to do.  */ */
30
/* OBSOLETE #define ISATTY(FP)  ((FP) == stdin || (FP) == stdout) */
31
/* OBSOLETE  */
32
/* OBSOLETE /* THis is the amount to subtract from u.u_ar0 */
33
/* OBSOLETE    to get the offset in the core file of the register values. */ */
34
/* OBSOLETE  */
35
/* OBSOLETE #define KERNEL_U_ADDR UADDR */
36
/* OBSOLETE  */
37
/* OBSOLETE /* The offsets in this macro are from /usr/include/machine/reg.h */ */
38
/* OBSOLETE  */
39
/* OBSOLETE #define REGISTER_U_ADDR(addr, blockend, regno)              \ */
40
/* OBSOLETE {   static char offsets[] = { \ */
41
/* OBSOLETE     /*d0-d7:*/1,2,3,4,5,6,7,8, \ */
42
/* OBSOLETE     /*a0-a6:*/9,10,11,12,13,14,15, /*sp:*/-4, /*ps:*/0, /*pc:*/-1, \ */
43
/* OBSOLETE     /*fp0-fp7:*/19,22,25,28,31,34,37,40, /*fpc:*/16,17,18 }; \ */
44
/* OBSOLETE     addr = blockend + 4 * offsets[regno]; \ */
45
/* OBSOLETE } */
46
/* OBSOLETE  */
47
/* OBSOLETE /* NewsOS 3.3 does not define errno in <errno.h>.  */ */
48
/* OBSOLETE extern int errno; */
49
/* OBSOLETE  */
50
/* OBSOLETE /* Interface definitions for kernel debugger KDB.  */ */
51
/* OBSOLETE  */
52
/* OBSOLETE /* Use GNU assembler instead of standard assembler */ */
53
/* OBSOLETE #define USE_GAS */
54
/* OBSOLETE  */
55
/* OBSOLETE /* Motorola assembly format */ */
56
/* OBSOLETE #ifndef USE_GAS */
57
/* OBSOLETE #define MOTOROLA */
58
/* OBSOLETE #endif */
59
/* OBSOLETE  */
60
/* OBSOLETE /* Map machine fault codes into signal numbers. */
61
/* OBSOLETE    First subtract 0, divide by 4, then index in a table. */
62
/* OBSOLETE    Faults for which the entry in this table is 0 */
63
/* OBSOLETE    are not handled by KDB; the program's own trap handler */
64
/* OBSOLETE    gets to handle then.  */ */
65
/* OBSOLETE  */
66
/* OBSOLETE #define FAULT_CODE_ORIGIN 0 */
67
/* OBSOLETE #define FAULT_CODE_UNITS 4 */
68
/* OBSOLETE #define FAULT_TABLE    \ */
69
/* OBSOLETE { 0, 0, 0, 0, SIGTRAP, 0, 0, 0, \ */
70
/* OBSOLETE   0, SIGTRAP, 0, 0, 0, 0, 0, SIGKILL, \ */
71
/* OBSOLETE   0, 0, 0, 0, 0, 0, 0, 0, \ */
72
/* OBSOLETE   SIGILL } */
73
/* OBSOLETE  */
74
/* OBSOLETE /* Start running with a stack stretching from BEG to END. */
75
/* OBSOLETE    BEG and END should be symbols meaningful to the assembler. */
76
/* OBSOLETE    This is used only for kdb.  */ */
77
/* OBSOLETE  */
78
/* OBSOLETE #ifdef MOTOROLA */
79
/* OBSOLETE #define INIT_STACK(beg, end)  \ */
80
/* OBSOLETE { asm (".globl end");         \ */
81
/* OBSOLETE   asm ("move.l $ end, sp");      \ */
82
/* OBSOLETE   asm ("clr.l fp"); } */
83
/* OBSOLETE #else */
84
/* OBSOLETE #define INIT_STACK(beg, end)  \ */
85
/* OBSOLETE { asm (".globl end");         \ */
86
/* OBSOLETE   asm ("movel $ end, sp");      \ */
87
/* OBSOLETE   asm ("clrl fp"); } */
88
/* OBSOLETE #endif */
89
/* OBSOLETE  */
90
/* OBSOLETE /* Push the frame pointer register on the stack.  */ */
91
/* OBSOLETE #ifdef MOTOROLA */
92
/* OBSOLETE #define PUSH_FRAME_PTR        \ */
93
/* OBSOLETE   asm ("move.l fp, -(sp)"); */
94
/* OBSOLETE #else */
95
/* OBSOLETE #define PUSH_FRAME_PTR        \ */
96
/* OBSOLETE   asm ("movel fp, -(sp)"); */
97
/* OBSOLETE #endif */
98
/* OBSOLETE  */
99
/* OBSOLETE /* Copy the top-of-stack to the frame pointer register.  */ */
100
/* OBSOLETE #ifdef MOTOROLA */
101
/* OBSOLETE #define POP_FRAME_PTR  \ */
102
/* OBSOLETE   asm ("move.l (sp), fp"); */
103
/* OBSOLETE #else */
104
/* OBSOLETE #define POP_FRAME_PTR  \ */
105
/* OBSOLETE   asm ("movl (sp), fp"); */
106
/* OBSOLETE #endif */
107
/* OBSOLETE  */
108
/* OBSOLETE /* After KDB is entered by a fault, push all registers */
109
/* OBSOLETE    that GDB thinks about (all NUM_REGS of them), */
110
/* OBSOLETE    so that they appear in order of ascending GDB register number. */
111
/* OBSOLETE    The fault code will be on the stack beyond the last register.  */ */
112
/* OBSOLETE  */
113
/* OBSOLETE #ifdef MOTOROLA */
114
/* OBSOLETE #define PUSH_REGISTERS        \ */
115
/* OBSOLETE { asm ("clr.w -(sp)");            \ */
116
/* OBSOLETE   asm ("pea (10,sp)");            \ */
117
/* OBSOLETE   asm ("movem $ 0xfffe,-(sp)"); } */
118
/* OBSOLETE #else */
119
/* OBSOLETE #define PUSH_REGISTERS        \ */
120
/* OBSOLETE { asm ("clrw -(sp)");             \ */
121
/* OBSOLETE   asm ("pea 10(sp)");             \ */
122
/* OBSOLETE   asm ("movem $ 0xfffe,-(sp)"); } */
123
/* OBSOLETE #endif */
124
/* OBSOLETE  */
125
/* OBSOLETE /* Assuming the registers (including processor status) have been */
126
/* OBSOLETE    pushed on the stack in order of ascending GDB register number, */
127
/* OBSOLETE    restore them and return to the address in the saved PC register.  */ */
128
/* OBSOLETE  */
129
/* OBSOLETE #ifdef MOTOROLA */
130
/* OBSOLETE #define POP_REGISTERS          \ */
131
/* OBSOLETE { asm ("subi.l $8,28(sp)");     \ */
132
/* OBSOLETE   asm ("movem (sp),$ 0xffff"); \ */
133
/* OBSOLETE   asm ("rte"); } */
134
/* OBSOLETE #else */
135
/* OBSOLETE #define POP_REGISTERS          \ */
136
/* OBSOLETE { asm ("subil $8,28(sp)");     \ */
137
/* OBSOLETE   asm ("movem (sp),$ 0xffff"); \ */
138
/* OBSOLETE   asm ("rte"); } */
139
/* OBSOLETE #endif */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.