Skip to content

Commit

Permalink
ARM: Remove redundant interrupt stack coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
David Cabecinhas committed Mar 16, 2017
1 parent f9c2246 commit 08e92ab
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 98 deletions.
10 changes: 0 additions & 10 deletions arch/arm/src/a1x/a1x_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,6 @@ void up_irqinitialize(void)
(void)getreg32(A1X_INTC_IRQ_PEND(i)); /* Reading status clears pending interrupts */
}

/* Colorize the interrupt stack for debug purposes */

#if defined(CONFIG_STACK_COLORATION) && CONFIG_ARCH_INTERRUPTSTACK > 3
{
size_t intstack_size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
up_stack_color((FAR void *)((uintptr_t)&g_intstackbase - intstack_size),
intstack_size);
}
#endif

/* Set the interrupt base address to zero. We do not use the vectored
* interrupts.
*/
Expand Down
10 changes: 0 additions & 10 deletions arch/arm/src/efm32/efm32_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,16 +319,6 @@ void up_irqinitialize(void)
putreg32(0xffffffff, NVIC_IRQ_CLEAR(i));
}

#if defined(CONFIG_STACK_COLORATION) && CONFIG_ARCH_INTERRUPTSTACK > 3
/* Colorize the interrupt stack for debug purposes */

{
size_t intstack_size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
up_stack_color((FAR void *)((uintptr_t)&g_intstackbase - intstack_size),
intstack_size);
}
#endif

/* Make sure that we are using the correct vector table. The default
* vector address is 0x0000:0000 but if we are executing code that is
* positioned in SRAM or in external FLASH, then we may need to reset
Expand Down
10 changes: 0 additions & 10 deletions arch/arm/src/imx6/imx_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,6 @@ void up_irqinitialize(void)
* access to the GIC.
*/

/* Colorize the interrupt stack for debug purposes */

#if defined(CONFIG_STACK_COLORATION) && CONFIG_ARCH_INTERRUPTSTACK > 3
{
size_t intstack_size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
up_stack_color((FAR void *)((uintptr_t)&g_intstackbase - intstack_size),
intstack_size);
}
#endif

/* Initialize the Generic Interrupt Controller (GIC) for CPU0 */

arm_gic0_initialize(); /* Initialization unique to CPU0 */
Expand Down
10 changes: 0 additions & 10 deletions arch/arm/src/sam34/sam_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,16 +385,6 @@ void up_irqinitialize(void)
putreg32(0, regaddr);
}

/* Colorize the interrupt stack for debug purposes */

#if defined(CONFIG_STACK_COLORATION) && CONFIG_ARCH_INTERRUPTSTACK > 3
{
size_t intstack_size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
up_stack_color((FAR void *)((uintptr_t)&g_intstackbase - intstack_size),
intstack_size);
}
#endif

/* Make sure that we are using the correct vector table. The default
* vector address is 0x0000:0000 but if we are executing code that is
* positioned in SRAM or in external FLASH, then we may need to reset
Expand Down
10 changes: 0 additions & 10 deletions arch/arm/src/sama5/sam_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,16 +431,6 @@ void up_irqinitialize(void)
* access to the AIC.
*/

/* Colorize the interrupt stack for debug purposes */

#if defined(CONFIG_STACK_COLORATION) && CONFIG_ARCH_INTERRUPTSTACK > 3
{
size_t intstack_size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
up_stack_color((FAR void *)((uintptr_t)&g_intstackbase - intstack_size),
intstack_size);
}
#endif

/* Redirect all interrupts to the AIC if so configured */

sam_aic_redirection();
Expand Down
10 changes: 0 additions & 10 deletions arch/arm/src/samv7/sam_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,16 +381,6 @@ void up_irqinitialize(void)
putreg32(0, regaddr);
}

/* Colorize the interrupt stack for debug purposes */

#if defined(CONFIG_STACK_COLORATION) && CONFIG_ARCH_INTERRUPTSTACK > 3
{
size_t intstack_size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
up_stack_color((FAR void *)((uintptr_t)&g_intstackbase - intstack_size),
intstack_size);
}
#endif

/* Make sure that we are using the correct vector table. The default
* vector address is 0x0000:0000 but if we are executing code that is
* positioned in SRAM or in external FLASH, then we may need to reset
Expand Down
10 changes: 0 additions & 10 deletions arch/arm/src/stm32/stm32_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,16 +310,6 @@ void up_irqinitialize(void)
putreg32(0xffffffff, NVIC_IRQ_CLEAR(i));
}

/* Colorize the interrupt stack for debug purposes */

#if defined(CONFIG_STACK_COLORATION) && CONFIG_ARCH_INTERRUPTSTACK > 3
{
size_t intstack_size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
up_stack_color((FAR void *)((uintptr_t)&g_intstackbase - intstack_size),
intstack_size);
}
#endif

/* The standard location for the vector table is at the beginning of FLASH
* at address 0x0800:0000. If we are using the STMicro DFU bootloader, then
* the vector table will be offset to a different location in FLASH and we
Expand Down
10 changes: 0 additions & 10 deletions arch/arm/src/stm32f7/stm32_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,16 +415,6 @@ void up_irqinitialize(void)
putreg32(0, regaddr);
}

/* Colorize the interrupt stack for debug purposes */

#if defined(CONFIG_STACK_COLORATION) && CONFIG_ARCH_INTERRUPTSTACK > 3
{
size_t intstack_size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
up_stack_color((FAR void *)((uintptr_t)&g_intstackbase - intstack_size),
intstack_size);
}
#endif

/* Make sure that we are using the correct vector table. The default
* vector address is 0x0000:0000 but if we are executing code that is
* positioned in SRAM or in external FLASH, then we may need to reset
Expand Down
10 changes: 0 additions & 10 deletions arch/arm/src/stm32l4/stm32l4_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,16 +304,6 @@ void up_irqinitialize(void)
putreg32(0xffffffff, NVIC_IRQ_CLEAR(i));
}

/* Colorize the interrupt stack for debug purposes */

#if defined(CONFIG_STACK_COLORATION) && CONFIG_ARCH_INTERRUPTSTACK > 3
{
size_t intstack_size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
up_stack_color((FAR void *)((uintptr_t)&g_intstackbase - intstack_size),
intstack_size);
}
#endif

/* The standard location for the vector table is at the beginning of FLASH
* at address 0x0800:0000. If we are using the STMicro DFU bootloader, then
* the vector table will be offset to a different location in FLASH and we
Expand Down
8 changes: 0 additions & 8 deletions arch/arm/src/tms570/tms570_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,6 @@ void up_irqinitialize(void)
FAR uintptr_t *vimram;
int i;

/* Colorize the interrupt stack for debug purposes */

#if defined(CONFIG_STACK_COLORATION) && CONFIG_ARCH_INTERRUPTSTACK > 3
size_t intstack_size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
up_stack_color((FAR void *)((uintptr_t)&g_intstackbase - intstack_size),
intstack_size);
#endif

/* Initialize VIM RAM vectors. These vectors are not used in the current
* interrupt handler logic.
*/
Expand Down

0 comments on commit 08e92ab

Please sign in to comment.