Changeset 4159370 in rtems for cpukit/score/cpu/sparc/cpu.c


Ignore:
Timestamp:
Jul 11, 2000, 9:16:53 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
0daf588
Parents:
f38d829
Message:

Reworked score/cpu/sparc so it can be safely compiled multilib. All
routines and structures that require CPU model specific information
are now in libcpu. This primarily required moving erc32 specific
information from score/cpu files to libcpu/sparc and the erc32 BSP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/sparc/cpu.c

    rf38d829 r4159370  
    99 *  http://www.OARcorp.com/rtems/license.html.
    1010 *
    11  *  Ported to ERC32 implementation of the SPARC by On-Line Applications
    12  *  Research Corporation (OAR) under contract to the European Space
    13  *  Agency (ESA).
    14  *
    15  *  ERC32 modifications of respective RTEMS file: COPYRIGHT (c) 1995.
    16  *  European Space Agency.
    17  *
    1811 *  $Id$
    1912 */
     
    2114#include <rtems/system.h>
    2215#include <rtems/score/isr.h>
    23 
    24 #if defined(erc32)
    25 #include <erc32.h>
    26 #endif
    2716
    2817/*
     
    112101
    113102  _CPU_Table = *cpu_table;
    114 
    115 #if defined(erc32)
    116 
    117   /*
    118    *  ERC32 specific initialization
    119    */
    120 
    121   _ERC32_MEC_Timer_Control_Mirror = 0;
    122   ERC32_MEC.Timer_Control = 0;
    123 
    124   ERC32_MEC.Control |= ERC32_CONFIGURATION_POWER_DOWN_ALLOWED;
    125 
    126 #endif
    127 
    128103}
    129104
     
    378353    the_context->psr = tmp_psr;
    379354}
    380 
    381 /*PAGE
    382  *
    383  *  _CPU_Thread_Idle_body
    384  *
    385  *  Some SPARC implementations have low power, sleep, or idle modes.  This
    386  *  tries to take advantage of those models. 
    387  */
    388  
    389 #if (CPU_PROVIDES_IDLE_THREAD_BODY == TRUE)
    390 
    391 /*
    392  *  This is the implementation for the erc32.
    393  *
    394  *  NOTE: Low power mode was enabled at initialization time.
    395  */
    396 
    397 #if defined(erc32)
    398 
    399 void _CPU_Thread_Idle_body( void )
    400 {
    401   while (1) {
    402     ERC32_MEC.Power_Down = 0;   /* value is irrelevant */
    403   }
    404 }
    405 
    406 #endif
    407 
    408 #endif /* CPU_PROVIDES_IDLE_THREAD_BODY */
Note: See TracChangeset for help on using the changeset viewer.