source: rtems/c/src/exec/score/cpu/a29k/rtems/score/a29k.h @ a3f5b6b

Last change on this file since a3f5b6b 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: 1.2 KB
Line 
1/*  a29k.h
2 *
3 *  COPYRIGHT (c) 1989-1999.
4 *  On-Line Applications Research Corporation (OAR).
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *  http://www.OARcorp.com/rtems/license.html.
9 *
10 *  $Id$
11 *
12 */
13/* @(#)a29k.h       10/21/96     1.3 */
14
15#ifndef _INCLUDE_A29K_h
16#define _INCLUDE_A29K_h
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22/*
23 *  This file contains the information required to build
24 *  RTEMS for a particular member of the "no cpu"
25 *  family when executing in protected mode.  It does
26 *  this by setting variables to indicate which implementation
27 *  dependent features are present in a particular member
28 *  of the family.
29 */
30 
31#if defined(rtems_multilib)
32/*
33 *  Figure out all CPU Model Feature Flags based upon compiler
34 *  predefines.
35 */
36
37#define CPU_MODEL_NAME  "rtems_multilib"
38#define A29K_HAS_FPU 0
39
40#elif defined(a29205)
41 
42#define CPU_MODEL_NAME  "a29205"
43#define A29K_HAS_FPU     0
44 
45#else
46 
47#error "Unsupported CPU Model"
48 
49#endif
50
51/*
52 *  Define the name of the CPU family.
53 */
54
55#define CPU_NAME "AMD 29K"
56
57/*
58 * Some bits in the CPS:
59 */
60#define TD      0x20000
61#define DI      0x00002
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* ! _INCLUDE_A29K_h */
68/* end of include file */
Note: See TracBrowser for help on using the repository browser.