summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/percpu.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-17 13:24:55 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-19 09:59:38 +0100
commitc2934b96e84c2e7a020761b8164ec0f8702de686 (patch)
tree79e54bff7d8b441eee0b70362c52505238788e1c /cpukit/score/src/percpu.c
parentsmptests: Add check for affinity support in newlib. (diff)
downloadrtems-c2934b96e84c2e7a020761b8164ec0f8702de686.tar.bz2
score: Move SMP interrupt stack initialization
Move SMP interrupt stack initialization for secondary processors from _SMP_Handler_initialize() to _ISR_Handler_initialization() to avoid code duplication. Apply _CPU_Interrupt_stack_setup() to all interrupt stacks.
Diffstat (limited to 'cpukit/score/src/percpu.c')
-rw-r--r--cpukit/score/src/percpu.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/cpukit/score/src/percpu.c b/cpukit/score/src/percpu.c
index b041b45197..201c53be5a 100644
--- a/cpukit/score/src/percpu.c
+++ b/cpukit/score/src/percpu.c
@@ -37,27 +37,6 @@
uint32_t cpu;
/*
- * Initialize per cpu pointer table
- */
- for ( cpu = 1 ; cpu < max_cpus; ++cpu ) {
-
- Per_CPU_Control *p = _Per_CPU_Get_by_index( cpu );
-
-#if CPU_ALLOCATE_INTERRUPT_STACK == TRUE
- {
- size_t size = rtems_configuration_get_interrupt_stack_size();
- uintptr_t ptr;
-
- p->interrupt_stack_low = _Workspace_Allocate_or_fatal_error( size );
-
- ptr = (uintptr_t) _Addresses_Add_offset( p->interrupt_stack_low, size );
- ptr &= ~(CPU_STACK_ALIGNMENT - 1);
- p->interrupt_stack_high = (void *)ptr;
- }
-#endif
- }
-
- /*
* Discover and initialize the secondary cores in an SMP system.
*/
max_cpus = bsp_smp_initialize( max_cpus );