source: rtems/c/src/exec/score/cpu/mips64orion/rtems/score/mips64orion.h @ 75061954

Last change on this file since 75061954 was a3f5b6b, checked in by Joel Sherrill <joel.sherrill@…>, on 05/28/00 at 20:14:45

Added a special CPU model of "rtems_multilib". This is the beginnings
of an experiment to determine what it will take to multilib most of
RTEMS per GNU multilib conventions. It is thought that only
interrupt processing and IO are not multlib-able. This means that
a BSP Kit should include IRQ processing from score/cpu, all peripheral
support (header files from score/cpu, libchip, and libcpu), and the
BSPs themselves. The rest of RTEMS should be multlib-able. But to do
this, all RTEMS CPU model feature flags must be derivable from gcc
cpp predefines. By configuring the bare bsp with the rtems_multilib
CPU model, you can try any combination of CPU CFLAGS and see well how the
logic in that section of the <CPU>.h works. Once all CPU multilib
variations can be built, then RTEMS proper can be multilib'ed and
separated from the BSPs.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*  mips64orion.h
2 *
3 *  Author:     Craig Lebakken <craigl@transition.com>
4 *
5 *  COPYRIGHT (c) 1996 by Transition Networks Inc.
6 *
7 *  To anyone who acknowledges that this file is provided "AS IS"
8 *  without any express or implied warranty:
9 *      permission to use, copy, modify, and distribute this file
10 *      for any purpose is hereby granted without fee, provided that
11 *      the above copyright notice and this notice appears in all
12 *      copies, and that the name of Transition Networks not be used in
13 *      advertising or publicity pertaining to distribution of the
14 *      software without specific, written prior permission.
15 *      Transition Networks makes no representations about the suitability
16 *      of this software for any purpose.
17 *
18 *  Derived from c/src/exec/score/cpu/no_cpu/no_cpu.h:
19 *
20 *  COPYRIGHT (c) 1989-1999.
21 *  On-Line Applications Research Corporation (OAR).
22 *
23 *  The license and distribution terms for this file may be
24 *  found in the file LICENSE in this distribution or at
25 *  http://www.OARcorp.com/rtems/license.html.
26 *
27 *  $Id$
28 */
29/* @(#)mips64orion.h       08/29/96     1.3 */
30
31#ifndef _INCLUDE_MIPS64ORION_h
32#define _INCLUDE_MIPS64ORION_h
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38/*
39 *  This file contains the information required to build
40 *  RTEMS for a particular member of the "no cpu"
41 *  family when executing in protected mode.  It does
42 *  this by setting variables to indicate which implementation
43 *  dependent features are present in a particular member
44 *  of the family.
45 */
46 
47#if defined(rtems_multilib)
48/*
49 *  Figure out all CPU Model Feature Flags based upon compiler
50 *  predefines.
51 */
52
53#define CPU_MODEL_NAME  "rtems_multilib"
54#define MIPS64ORION_HAS_FPU     1
55
56#elif defined(R4650)
57 
58#define CPU_MODEL_NAME  "R4650"
59#define MIPS64ORION_HAS_FPU     1
60 
61#elif defined(R4600)
62 
63#define CPU_MODEL_NAME  "R4600"
64#define MIPS64ORION_HAS_FPU     1
65
66#else
67 
68#error "Unsupported CPU Model"
69 
70#endif
71
72/*
73 *  Define the name of the CPU family.
74 */
75
76#define CPU_NAME "MIPS R46xxx"
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* ! _INCLUDE_MIPS64ORION_h */
83/* end of include file */
Note: See TracBrowser for help on using the repository browser.