loapic: move common init code into driver
The initialization code and macros are the same. So extracts it and puts it into the driver. This is another step to follow the driver model. Change-Id: I1d379068f64855d5d4595838040ec50f97f638a0 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
8778152298
commit
921ee03094
7 changed files with 5 additions and 40 deletions
|
@ -95,6 +95,7 @@
|
|||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
#include <drivers/loapic.h> /* public API declarations */
|
||||
#include <init.h>
|
||||
|
||||
/* IA32_APIC_BASE MSR Bits */
|
||||
|
||||
|
@ -460,3 +461,7 @@ int _loapic_isr_vector_get(void)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DECLARE_DEVICE_INIT_CONFIG(loapic_0, "", _loapic_init, NULL);
|
||||
SYS_DEFINE_DEVICE(loapic_0, NULL, PRIMARY,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue