* rtems/score/cpu.h, cpu.c: Removed superfluous functions.
This commit is contained in:
Sebastian Huber
2011-08-10 14:10:10 +00:00
parent 3ee5a2e29b
commit 45dabfd480
3 changed files with 5 additions and 66 deletions

View File

@@ -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> 2011-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* nios2-iic-low-level.S: New file. * nios2-iic-low-level.S: New file.

View File

@@ -121,55 +121,3 @@ void _CPU_ISR_install_vector(
_ISR_Vector_table[ vector ] = new_handler; _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
}

View File

@@ -310,7 +310,7 @@ extern "C" {
* *
* XXX document implementation including references if appropriate * 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 * Does the stack grow up (toward higher addresses) or down
@@ -1154,19 +1154,6 @@ void _CPU_ISR_install_vector(
proc_ptr *old_handler proc_ptr *old_handler
); );
/**
* @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. * This routine is the CPU dependent IDLE thread body.
* *