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
2 changed files with 10 additions and 3 deletions
|
@ -49,13 +49,20 @@ config LOAPIC_BASE_ADDRESS
|
||||||
This option specifies the base address of the Local APIC device.
|
This option specifies the base address of the Local APIC device.
|
||||||
|
|
||||||
config IOAPIC
|
config IOAPIC
|
||||||
bool "IOAPIC"
|
bool "IO-APIC"
|
||||||
default y
|
default y
|
||||||
depends on LOAPIC
|
depends on LOAPIC
|
||||||
help
|
help
|
||||||
This option signifies that the target has an IO-APIC device. This
|
This option signifies that the target has an IO-APIC device. This
|
||||||
capability allows IO-APIC-dependent code to be included.
|
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
|
config IOAPIC_BASE_ADDRESS
|
||||||
hex "IO-APIC Base Address"
|
hex "IO-APIC Base Address"
|
||||||
default 0xFEC00000
|
default 0xFEC00000
|
||||||
|
|
|
@ -559,7 +559,7 @@ static void _IoApicRteConfigSet(unsigned int irq, /* INTIN number */
|
||||||
{
|
{
|
||||||
unsigned int offset; /* register offset */
|
unsigned int offset; /* register offset */
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef CONFIG_IOAPIC_DEBUG
|
||||||
if (irq >= CONFIG_IOAPIC_NUM_RTES)
|
if (irq >= CONFIG_IOAPIC_NUM_RTES)
|
||||||
return; /* do nothing if <irq> is invalid */
|
return; /* do nothing if <irq> is invalid */
|
||||||
#endif
|
#endif
|
||||||
|
@ -585,7 +585,7 @@ static void _IoApicRedirRegSet(unsigned int reg, uint32_t value)
|
||||||
{
|
{
|
||||||
unsigned int offset; /* register offset */
|
unsigned int offset; /* register offset */
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef CONFIG_IOAPIC_DEBUG
|
||||||
if ((reg > 7) || (reg == 0))
|
if ((reg > 7) || (reg == 0))
|
||||||
return; /* do nothing if <reg> is invalid */
|
return; /* do nothing if <reg> is invalid */
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue