Enable IO-APIC debgging
Change-Id: I4f6c4400ec24d424b481703711d70bb5aff4f7e3 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
6971d547cd
commit
8cc32b8209
|
@ -49,13 +49,20 @@ config LOAPIC_BASE_ADDRESS
|
|||
This option specifies the base address of the Local APIC device.
|
||||
|
||||
config IOAPIC
|
||||
bool "IOAPIC"
|
||||
bool "IO-APIC"
|
||||
default y
|
||||
depends on LOAPIC
|
||||
help
|
||||
This option signifies that the target has an IO-APIC device. This
|
||||
capability allows IO-APIC-dependent code to be included.
|
||||
|
||||
config IOAPIC_DEBUG
|
||||
bool "IO-APIC Debugging"
|
||||
default n
|
||||
depends on IOAPIC
|
||||
help
|
||||
Enable debugging for IO-APIC driver.
|
||||
|
||||
config IOAPIC_BASE_ADDRESS
|
||||
hex "IO-APIC Base Address"
|
||||
default 0xFEC00000
|
||||
|
|
|
@ -559,7 +559,7 @@ static void _IoApicRteConfigSet(unsigned int irq, /* INTIN number */
|
|||
{
|
||||
unsigned int offset; /* register offset */
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef CONFIG_IOAPIC_DEBUG
|
||||
if (irq >= CONFIG_IOAPIC_NUM_RTES)
|
||||
return; /* do nothing if <irq> is invalid */
|
||||
#endif
|
||||
|
@ -585,7 +585,7 @@ static void _IoApicRedirRegSet(unsigned int reg, uint32_t value)
|
|||
{
|
||||
unsigned int offset; /* register offset */
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef CONFIG_IOAPIC_DEBUG
|
||||
if ((reg > 7) || (reg == 0))
|
||||
return; /* do nothing if <reg> is invalid */
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue