forked from Imagelibrary/rtems
2011-08-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h, cpu.c: Removed superfluous functions.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -1154,19 +1154,6 @@ void _CPU_ISR_install_vector(
|
||||
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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user