Skip to content
Permalink
Browse files

x86: remove code for interrupt forwarding bug

This only applied to quark_se, so removing it.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information...
nashif authored and andrewboie committed Jul 25, 2019
1 parent 578ae40 commit cb412df725d3add8a66a76247a4cdef492905d2d
@@ -210,9 +210,7 @@ alreadyOnIntStack:
cli /* disable interrupts again */
#endif

#if defined(CONFIG_EOI_FORWARDING_BUG)
call z_lakemont_eoi
#elif defined(CONFIG_X2APIC)
#if defined(CONFIG_X2APIC)
call z_x2apic_eoi
#else /* xAPIC EOI */
xorl %eax, %eax
@@ -163,11 +163,7 @@ static int loapic_init(struct device *unused)
#endif

/* discard a pending interrupt if any */
#if CONFIG_EOI_FORWARDING_BUG
z_lakemont_eoi();
#else
x86_write_loapic(LOAPIC_EOI, 0);
#endif

return 0;
}
@@ -136,10 +136,6 @@ static inline void x86_write_loapic(unsigned int reg, u32_t val)
#endif
}

#if CONFIG_EOI_FORWARDING_BUG
extern void z_lakemont_eoi(void);
#endif

#endif /* _ASMLANGUAGE */

#ifdef __cplusplus
@@ -32,9 +32,7 @@ void z_x2apic_eoi(void);

static inline void z_irq_controller_eoi(void)
{
#if defined(CONFIG_EOI_FORWARDING_BUG)
z_lakemont_eoi();
#elif defined(CONFIG_X2APIC)
#if defined(CONFIG_X2APIC)
z_x2apic_eoi();
#else /* xAPIC */
*(volatile int *)(CONFIG_LOAPIC_BASE_ADDRESS + LOAPIC_EOI) = 0;

0 comments on commit cb412df

Please sign in to comment.
You can’t perform that action at this time.