81#define LAPIC_REG_ID_OFFSET 24
lapic_flags_t
Local APIC Flags.
lapic_t * lapic_get(uint32_t cpuId)
Get the lapic data for the specified CPU.
void lapic_init(cpu_t *cpu)
Initialize the local APIC for a CPU.
lapic_msr_flags_t
Local APIC MSR Flags.
void lapic_send_init(lapic_id_t id)
Send an INIT IPI to the specified local APIC.
void lapic_send_sipi(lapic_id_t id, void *entryPoint)
Send a Startup IPI (SIPI) to the specified local APIC.
lapic_icr_flags_t
Local APIC ICR Flags.
uint32_t lapic_read(uint32_t reg)
Read from a local apic register.
uint64_t lapic_global_init(void)
Initialize the local APIC subsystem.
uint8_t lapic_id_t
Local APIC ID type.
lapic_register_t
Local APIC Registers.
lapic_icr_delivery_mode_t
Local APIC ICR Delivery Modes.
void lapic_write(uint32_t reg, uint32_t value)
Write to a local apic register.
@ LAPIC_ICR_CLEAR_INIT_LEVEL
@ LAPIC_REG_TASK_PRIORITY
@ LAPIC_REG_TIMER_CURRENT_COUNT
@ LAPIC_REG_TIMER_INITIAL_COUNT
@ LAPIC_REG_TIMER_DIVIDER
@ LAPIC_REG_PROCESSOR_PRIORITY
@ LAPIC_REG_ARBITRATION_PRIORITY
@ LAPIC_ICR_LOWEST_PRIORITY
uint64_t ticksPerMs
Initialized to 0, set on first use of the APIC timer on the CPU.