diff options
Diffstat (limited to 'bsps/powerpc/tqm8xx')
-rw-r--r-- | bsps/powerpc/tqm8xx/include/bsp.h | 4 | ||||
-rw-r--r-- | bsps/powerpc/tqm8xx/start/bspstart.c | 10 | ||||
-rw-r--r-- | bsps/powerpc/tqm8xx/start/start.S | 13 |
3 files changed, 6 insertions, 21 deletions
diff --git a/bsps/powerpc/tqm8xx/include/bsp.h b/bsps/powerpc/tqm8xx/include/bsp.h index 5c8eae81b4..8e84ee883e 100644 --- a/bsps/powerpc/tqm8xx/include/bsp.h +++ b/bsps/powerpc/tqm8xx/include/bsp.h @@ -53,10 +53,6 @@ LINKER_SYMBOL( bsp_section_bss_start); LINKER_SYMBOL( bsp_section_bss_end); LINKER_SYMBOL( bsp_section_bss_size); -LINKER_SYMBOL( bsp_interrupt_stack_start); -LINKER_SYMBOL( bsp_interrupt_stack_end); -LINKER_SYMBOL( bsp_interrupt_stack_size); - LINKER_SYMBOL( bsp_work_area_start); #ifndef ASM diff --git a/bsps/powerpc/tqm8xx/start/bspstart.c b/bsps/powerpc/tqm8xx/start/bspstart.c index b2d765c9c4..2d0b8e3c7e 100644 --- a/bsps/powerpc/tqm8xx/start/bspstart.c +++ b/bsps/powerpc/tqm8xx/start/bspstart.c @@ -99,11 +99,6 @@ uint32_t _CPU_Counter_frequency(void) void bsp_start( void) { - - uintptr_t interrupt_stack_start = (uintptr_t) bsp_interrupt_stack_start; - uintptr_t interrupt_stack_size = (uintptr_t) bsp_interrupt_stack_end - - interrupt_stack_start; - /* * Get CPU identification dynamically. Note that the get_ppc_cpu_type() * function stores the result in global variables so that it can be used @@ -149,7 +144,10 @@ void bsp_start( void) bsp_clicks_per_usec = bsp_time_base_frequency / 1000000; /* Initialize exception handler */ - ppc_exc_initialize(interrupt_stack_start, interrupt_stack_size); + ppc_exc_initialize( + (uintptr_t) _Configuration_Interrupt_stack_area_begin, + rtems_configuration_get_interrupt_stack_size() + ); /* Initalize interrupt support */ bsp_interrupt_initialize(); diff --git a/bsps/powerpc/tqm8xx/start/start.S b/bsps/powerpc/tqm8xx/start/start.S index 92bda3fd6d..b16b92e1e2 100644 --- a/bsps/powerpc/tqm8xx/start/start.S +++ b/bsps/powerpc/tqm8xx/start/start.S @@ -26,8 +26,6 @@ .extern boot_card PUBLIC_VAR (_start) -PUBLIC_VAR (bsp_interrupt_stack_start) -PUBLIC_VAR (bsp_interrupt_stack_end) .section ".bsp_start_text", "ax" _start: @@ -119,8 +117,8 @@ start_code_in_ram: */ /* Set stack pointer (common for RAM/ROM startup) */ - LA r1, bsp_section_text_begin - addi r1, r1, -0x10 /* Set up stack pointer = beginning of text section - 0x10 */ + LA r1, _Configuration_Interrupt_stack_area_end + addi r1, r1, -0x10 /* Create NULL */ li r0, 0 @@ -285,10 +283,3 @@ mpc8xx_zero_4_tail: blr end_reloc_startup: - - /* Interrupt stack */ - .section ".bsp_rwextra", "aw", @nobits - .align 4 -bsp_interrupt_stack_start: - .space 32768 -bsp_interrupt_stack_end: |