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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [config/] [m68k/] [tm-hp300bsd.h] - Diff between revs 107 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 107 Rev 1765
/* Parameters for target machine Hewlett-Packard 9000/300, running bsd.
/* Parameters for target machine Hewlett-Packard 9000/300, running bsd.
   Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
   Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
 
 
   This file is part of GDB.
   This file is part of GDB.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
   (at your option) any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330,
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */
   Boston, MA 02111-1307, USA.  */
 
 
/* Configuration file for HP9000/300 series machine running BSD,
/* Configuration file for HP9000/300 series machine running BSD,
   including Utah, Mt. Xinu or Berkeley variants.  This is NOT for HP-UX.
   including Utah, Mt. Xinu or Berkeley variants.  This is NOT for HP-UX.
   Problems to hpbsd-bugs@cs.utah.edu.  */
   Problems to hpbsd-bugs@cs.utah.edu.  */
 
 
/* GCC is the only compiler used on this OS.  So get this right even if
/* GCC is the only compiler used on this OS.  So get this right even if
   the code which detects gcc2_compiled. is still broken.  */
   the code which detects gcc2_compiled. is still broken.  */
 
 
#define BELIEVE_PCC_PROMOTION 1
#define BELIEVE_PCC_PROMOTION 1
 
 
/* Define BPT_VECTOR if it is different than the default.
/* Define BPT_VECTOR if it is different than the default.
   This is the vector number used by traps to indicate a breakpoint.
   This is the vector number used by traps to indicate a breakpoint.
 
 
   For hp300bsd the normal breakpoint vector is 0x2 (for debugging via
   For hp300bsd the normal breakpoint vector is 0x2 (for debugging via
   ptrace); for remote kernel debugging the breakpoint vector is 0xf.  */
   ptrace); for remote kernel debugging the breakpoint vector is 0xf.  */
 
 
#define BPT_VECTOR 0x2
#define BPT_VECTOR 0x2
#define REMOTE_BPT_VECTOR 0xf
#define REMOTE_BPT_VECTOR 0xf
 
 
#define TARGET_NBPG 4096
#define TARGET_NBPG 4096
 
 
/* For 4.4 this would be 2, but it is OK for us to detect an area a
/* For 4.4 this would be 2, but it is OK for us to detect an area a
   bit bigger than necessary.  This way the same gdb binary can target
   bit bigger than necessary.  This way the same gdb binary can target
   either 4.3 or 4.4.  */
   either 4.3 or 4.4.  */
 
 
#define TARGET_UPAGES 3
#define TARGET_UPAGES 3
 
 
/* On the HP300, sigtramp is in the u area.  Gak!  User struct is not
/* On the HP300, sigtramp is in the u area.  Gak!  User struct is not
   mapped to the same virtual address in user/kernel address space
   mapped to the same virtual address in user/kernel address space
   (hence STACK_END_ADDR as opposed to KERNEL_U_ADDR).  This tests
   (hence STACK_END_ADDR as opposed to KERNEL_U_ADDR).  This tests
   for the whole u area, since we don't necessarily have hp300bsd
   for the whole u area, since we don't necessarily have hp300bsd
   include files around.  */
   include files around.  */
 
 
/* For 4.4, it is actually right 20 bytes *before* STACK_END_ADDR, so
/* For 4.4, it is actually right 20 bytes *before* STACK_END_ADDR, so
   include that in the area we test for.  */
   include that in the area we test for.  */
 
 
#define SIGTRAMP_START(pc) (STACK_END_ADDR - 20)
#define SIGTRAMP_START(pc) (STACK_END_ADDR - 20)
#define SIGTRAMP_END(pc) (STACK_END_ADDR + TARGET_UPAGES * TARGET_NBPG)
#define SIGTRAMP_END(pc) (STACK_END_ADDR + TARGET_UPAGES * TARGET_NBPG)
 
 
/* Address of end of stack space.  */
/* Address of end of stack space.  */
 
 
#define STACK_END_ADDR 0xfff00000
#define STACK_END_ADDR 0xfff00000
 
 
#include "m68k/tm-m68k.h"
#include "m68k/tm-m68k.h"
 
 

powered by: WebSVN 2.1.0

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