arch/x86: drivers/loapic_intr.c: move local APIC initialization

In the general case, the local APIC can't be treated as a normal device
with a single boot-time initialization - on SMP systems, each CPU must
initialize its own. Hence the initialization proper is separated from
the device-driver initialization, and said initialization is called
from the early startup-assembly code when appropriate.

Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
Charles E. Youse 2019-09-28 16:58:22 -04:00 committed by Anas Nashif
commit a981f51fe6
4 changed files with 24 additions and 8 deletions

View file

@ -49,6 +49,7 @@
extern "C" {
#endif
extern void z_loapic_enable(void);
extern void z_loapic_int_vec_set(unsigned int irq, unsigned int vector);
extern void z_loapic_irq_enable(unsigned int irq);
extern void z_loapic_irq_disable(unsigned int irq);