Changeset 45dabfd in rtems


Ignore:
Timestamp:
Aug 10, 2011, 2:10:10 PM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
2a5880f1
Parents:
3ee5a2e
Message:

2011-08-10 Sebastian Huber <sebastian.huber@…>

  • rtems/score/cpu.h, cpu.c: Removed superfluous functions.
Location:
cpukit/score/cpu/nios2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/nios2/ChangeLog

    r3ee5a2e r45dabfd  
     12011-08-10      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * rtems/score/cpu.h, cpu.c: Removed superfluous functions.
     4
    152011-08-09      Sebastian Huber <sebastian.huber@embedded-brains.de>
    26
  • cpukit/score/cpu/nios2/cpu.c

    r3ee5a2e r45dabfd  
    122122    _ISR_Vector_table[ vector ] = new_handler;
    123123}
    124 
    125 /*
    126  *  _CPU_Install_interrupt_stack
    127  *
    128  *  NO_CPU Specific Information:
    129  *
    130  *  XXX document implementation including references if appropriate
    131  */
    132 
    133 void _CPU_Install_interrupt_stack( void )
    134 {
    135 }
    136 
    137 /*
    138  *  _CPU_Thread_Idle_body
    139  *
    140  *  NOTES:
    141  *
    142  *  1. This is the same as the regular CPU independent algorithm.
    143  *
    144  *  2. If you implement this using a "halt", "idle", or "shutdown"
    145  *     instruction, then don't forget to put it in an infinite loop.
    146  *
    147  *  3. Be warned. Some processors with onboard DMA have been known
    148  *     to stop the DMA if the CPU were put in IDLE mode.  This might
    149  *     also be a problem with other on-chip peripherals.  So use this
    150  *     hook with caution.
    151  *
    152  *  NO_CPU Specific Information:
    153  *
    154  *  XXX document implementation including references if appropriate
    155  */
    156 
    157 void *_CPU_Thread_Idle_body( uintptr_t ignored )
    158 {
    159 #if 1
    160   for(;;);
    161 #else
    162   for(;;)
    163   {
    164     uint32_t st = __builtin_rdctl(0); /* read status  register */
    165 
    166     /* Differentiate between IRQ off and on (for debugging) */
    167     if(st & 1)
    168       for(;;);
    169     else
    170       for(;;);
    171 
    172     /* insert your "halt" instruction here */ ;
    173   }
    174 #endif
    175 }
  • cpukit/score/cpu/nios2/rtems/score/cpu.h

    r3ee5a2e r45dabfd  
    311311 *  XXX document implementation including references if appropriate
    312312 */
    313 #define CPU_PROVIDES_IDLE_THREAD_BODY    TRUE
     313#define CPU_PROVIDES_IDLE_THREAD_BODY    FALSE
    314314
    315315/**
     
    11561156
    11571157/**
    1158  *  @ingroup CPUInterrupt
    1159  *  This routine installs the hardware interrupt stack pointer.
    1160  *
    1161  *  @note  It need only be provided if @ref CPU_HAS_HARDWARE_INTERRUPT_STACK
    1162  *         is TRUE.
    1163  *
    1164  *  Port Specific Information:
    1165  *
    1166  *  XXX document implementation including references if appropriate
    1167  */
    1168 void _CPU_Install_interrupt_stack( void );
    1169 
    1170 /**
    11711158 *  This routine is the CPU dependent IDLE thread body.
    11721159 *
Note: See TracChangeset for help on using the changeset viewer.