Annotation of gforth/arch/mips/machine.h, revision 1.16

1.1       anton       1: /* This is the machine-specific part for MIPS R[2346810]000 processors
                      2: 
1.15      anton       3:   Copyright (C) 1995,1996,1997,1998,2000,2003 Free Software Foundation, Inc.
1.1       anton       4: 
                      5:   This file is part of Gforth.
                      6: 
                      7:   Gforth is free software; you can redistribute it and/or
                      8:   modify it under the terms of the GNU General Public License
                      9:   as published by the Free Software Foundation; either version 2
                     10:   of the License, or (at your option) any later version.
                     11: 
                     12:   This program is distributed in the hope that it will be useful,
                     13:   but WITHOUT ANY WARRANTY; without even the implied warranty of
                     14:   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     15:   GNU General Public License for more details.
                     16: 
                     17:   You should have received a copy of the GNU General Public License
                     18:   along with this program; if not, write to the Free Software
1.10      anton      19:   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
1.1       anton      20: */
                     21: 
                     22: #if !defined(USE_TOS) && !defined(USE_NO_TOS)
                     23: /* on the mips this is a mixed blessing, since defining this spills
                     24:    the rp with some gcc versions. This machine has 31 regs, yet that's
                     25:    not enough for gcc-2.4.5 :-( */
                     26: #define USE_TOS
                     27: #endif
                     28: 
                     29: /* cache flush stuff */
                     30: #ifdef ultrix
                     31: #include <mips/cachectl.h>
                     32: #else
                     33: /* works on Irix */
                     34: #include <sys/cachectl.h>
                     35: #endif
                     36: 
                     37: #define FLUSH_ICACHE(addr,size) \
                     38:                        cacheflush((char *)(addr), (int)(size), BCACHE)
                     39: 
1.4       anton      40: #include "../generic/machine.h"
1.1       anton      41: 
                     42: #ifdef FORCE_REG
                     43: #define IPREG asm("$16")
                     44: #define SPREG asm("$17")
                     45: #define RPREG asm("$18")
                     46: #define LPREG asm("$19")
                     47: #define CFAREG asm("$20")
                     48: #define TOSREG asm("$21")
                     49: #endif /* FORCE_REG */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>