arch/arm/src/am335x/chip/am3358_memorymap.h: Code cleanup for beaglebone black port

arch/arm/src/am335x/am335x_irq.c: Uncomment code for interrupt enable/disable
This commit is contained in:
Petro Karashchenko 2019-01-06 14:24:39 -06:00 committed by Gregory Nutt
parent 62fe15e87c
commit a0ba6a12a4
2 changed files with 8 additions and 6 deletions

View File

@ -275,9 +275,11 @@ void up_disable_irq(int irq)
{
if (irq < AM335X_IRQ_NINT)
{
//__asm__ __volatile__ ("\tdsb");
__asm__ __volatile__ ("\tdsb");
/* Disable interrupt on INTC */
//putreg32(INTC_MIR_SET(irq), AM335X_INTC_MIR_SET(irq));
putreg32(INTC_MIR_SET(irq), AM335X_INTC_MIR_SET(irq));
}
#ifdef CONFIG_AM335X_GPIO_IRQ
else
@ -301,9 +303,11 @@ void up_enable_irq(int irq)
{
if (irq < AM335X_IRQ_NINT)
{
//__asm__ __volatile__ ("\tdsb");
__asm__ __volatile__ ("\tdsb");
/* Enable interrupt on INTC */
//putreg32(INTC_MIR_CLEAR(irq), AM335X_INTC_MIR_CLEAR(irq));
putreg32(INTC_MIR_CLEAR(irq), AM335X_INTC_MIR_CLEAR(irq));
}
#ifdef CONFIG_AM335X_GPIO_IRQ
else

View File

@ -498,8 +498,6 @@
# define IDLE_STACK_PBASE (PGTABLE_BASE_PADDR - CONFIG_IDLETHREAD_STACKSIZE)
# define IDLE_STACK_VBASE (PGTABLE_BASE_VADDR - CONFIG_IDLETHREAD_STACKSIZE)
//# define IDLE_STACK_PBASE 0x8d000000
//# define IDLE_STACK_VBASE 0x8d000000
# else /* CONFIG_ARCH_LOWVECTORS */