source: rtems/cpukit/score/cpu/arm/rtems/score/arm.h @ 4f0b287

4.104.114.84.95
Last change on this file since 4f0b287 was 4f0b287, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 17, 2002 at 5:14:31 PM

2002-07-17 Jay Monkman <jtm@…>

  • rtems/score/cpu_asm.h: Enhanced to include register offsets.
  • Makefile.am: Install rtems/score/cpu_asm.h.
  • cpu.c: Significantly enhanced including the implementation of _CPU_ISR_Get_level.
  • cpu_asm.S: Improved behavior of context switch and interrupt dispatching.
  • rtems/score/arm.h: Improved the CPU model name determination.
  • rtems/score/cpu.h: Improved interrupt disable/enable functions.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1/* 
2 *  $Id$
3 *
4 *
5 *  COPYRIGHT (c) 2000 Canon Research Centre France SA.
6 *  Emmanuel Raguet, mailto:raguet@crf.canon.fr
7 *
8 *  Copyright (c) 2002 Advent Networks, Inc.
9 *       Jay Monkman <jmonkman@adventnetworks.com>
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.OARcorp.com/rtems/license.html.
14 *
15 */
16
17#ifndef _INCLUDE_ARM_h
18#define _INCLUDE_ARM_h
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/*
25 *  This file contains the information required to build
26 *  RTEMS for a particular member of the "arm"
27 *  family when executing in protected mode.  It does
28 *  this by setting variables to indicate which implementation
29 *  dependent features are present in a particular member
30 *  of the family.
31 */
32#if defined(__arm9__)
33#  define CPU_MODEL_NAME  "arm9"
34#  define ARM_HAS_FPU     0
35#elif defined(__arm9tdmi__)
36#  define CPU_MODEL_NAME  "arm9tdmi"
37#  define ARM_HAS_FPU     0
38#elif defined(__arm7__)
39#  define CPU_MODEL_NAME  "arm7"
40#  define ARM_HAS_FPU     0
41#elif defined(__arm7tdmi__)
42#  define CPU_MODEL_NAME  "arm7tdmi"
43#  define ARM_HAS_FPU     0
44#elif defined(__arm__)
45#  define CPU_MODEL_NAME  "unknown ARM"
46#  define ARM_HAS_FPU     0
47#else
48#  error "Unsupported CPU Model"
49#endif
50
51/*
52 *  Define the name of the CPU family.
53 */
54
55#define CPU_NAME "ARM"
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* ! _INCLUDE_ARM_h */
62/* end of include file */
Note: See TracBrowser for help on using the repository browser.