loapic: add LOAPIC_DEBUG for debugging loapic

Change DEBUG option into something more specific.

Change-Id: If1f421fbf7d234ad6bfac410697205d5d74548c0
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2015-09-07 08:25:45 -04:00
commit 71ad87c7d0
2 changed files with 9 additions and 2 deletions

View file

@ -41,6 +41,13 @@ config LOAPIC
help
This option selects local APIC as the interrupt controller.
config LOAPIC_DEBUG
bool "LOAPIC Debug"
default n
depends on LOAPIC
help
This option enable debugging for the LOAPIC driver.
config LOAPIC_BASE_ADDRESS
hex "Local APIC Base Address"
default 0xFEE00000

View file

@ -103,7 +103,7 @@ int _SysIntVecAlloc(
ARG_UNUSED(boiRtnParm);
ARG_UNUSED(boiParamRequired);
#if defined(DEBUG)
#if defined(CONFIG_LOAPIC_DEBUG)
if ((priority > 15) ||
((irq > (CONFIG_IOAPIC_NUM_RTES + 5)) && (irq != NANO_SOFT_IRQ)))
return -1;
@ -136,7 +136,7 @@ int _SysIntVecAlloc(
*boiRtn = (NANO_EOI_GET_FUNC)NULL; /* a BOI handler is never required */
*eoiRtn = (NANO_EOI_GET_FUNC)NULL; /* assume NANO_SOFT_IRQ */
#if defined(DEBUG)
#if defined(CONFIG_LOAPIC_DEBUG)
if ((vector != -1) && (irq != NANO_SOFT_IRQ))
#else
if (irq != NANO_SOFT_IRQ)