diff options
-rw-r--r-- | cpukit/score/cpu/nios2/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/score/cpu/nios2/cpu.c | 52 | ||||
-rw-r--r-- | cpukit/score/cpu/nios2/rtems/score/cpu.h | 15 |
3 files changed, 5 insertions, 66 deletions
diff --git a/cpukit/score/cpu/nios2/ChangeLog b/cpukit/score/cpu/nios2/ChangeLog index 61d1bb4b92..3b4c4a3d10 100644 --- a/cpukit/score/cpu/nios2/ChangeLog +++ b/cpukit/score/cpu/nios2/ChangeLog @@ -1,3 +1,7 @@ +2011-08-10 Sebastian Huber <sebastian.huber@embedded-brains.de> + + * rtems/score/cpu.h, cpu.c: Removed superfluous functions. + 2011-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de> * nios2-iic-low-level.S: New file. diff --git a/cpukit/score/cpu/nios2/cpu.c b/cpukit/score/cpu/nios2/cpu.c index 5037293c1e..536e5e8cf8 100644 --- a/cpukit/score/cpu/nios2/cpu.c +++ b/cpukit/score/cpu/nios2/cpu.c @@ -121,55 +121,3 @@ void _CPU_ISR_install_vector( _ISR_Vector_table[ vector ] = new_handler; } - -/* - * _CPU_Install_interrupt_stack - * - * NO_CPU Specific Information: - * - * XXX document implementation including references if appropriate - */ - -void _CPU_Install_interrupt_stack( void ) -{ -} - -/* - * _CPU_Thread_Idle_body - * - * NOTES: - * - * 1. This is the same as the regular CPU independent algorithm. - * - * 2. If you implement this using a "halt", "idle", or "shutdown" - * instruction, then don't forget to put it in an infinite loop. - * - * 3. Be warned. Some processors with onboard DMA have been known - * to stop the DMA if the CPU were put in IDLE mode. This might - * also be a problem with other on-chip peripherals. So use this - * hook with caution. - * - * NO_CPU Specific Information: - * - * XXX document implementation including references if appropriate - */ - -void *_CPU_Thread_Idle_body( uintptr_t ignored ) -{ -#if 1 - for(;;); -#else - for(;;) - { - uint32_t st = __builtin_rdctl(0); /* read status register */ - - /* Differentiate between IRQ off and on (for debugging) */ - if(st & 1) - for(;;); - else - for(;;); - - /* insert your "halt" instruction here */ ; - } -#endif -} diff --git a/cpukit/score/cpu/nios2/rtems/score/cpu.h b/cpukit/score/cpu/nios2/rtems/score/cpu.h index 1d54aaa896..b93c88f6fe 100644 --- a/cpukit/score/cpu/nios2/rtems/score/cpu.h +++ b/cpukit/score/cpu/nios2/rtems/score/cpu.h @@ -310,7 +310,7 @@ extern "C" { * * XXX document implementation including references if appropriate */ -#define CPU_PROVIDES_IDLE_THREAD_BODY TRUE +#define CPU_PROVIDES_IDLE_THREAD_BODY FALSE /** * Does the stack grow up (toward higher addresses) or down @@ -1155,19 +1155,6 @@ void _CPU_ISR_install_vector( ); /** - * @ingroup CPUInterrupt - * This routine installs the hardware interrupt stack pointer. - * - * @note It need only be provided if @ref CPU_HAS_HARDWARE_INTERRUPT_STACK - * is TRUE. - * - * Port Specific Information: - * - * XXX document implementation including references if appropriate - */ -void _CPU_Install_interrupt_stack( void ); - -/** * This routine is the CPU dependent IDLE thread body. * * @note It need only be provided if @ref CPU_PROVIDES_IDLE_THREAD_BODY |