![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/mmio.h>
#include <arch/cpu.h>
#include <cpu/x86/lapic_def.h>
#include <cpu/x86/msr.h>
#include <halt.h>
#include <stdint.h>
Go to the source code of this file.
Definition at line 55 of file lapic.c.
References LAPIC_BASE_MSR, LAPIC_BASE_MSR_ENABLE, LAPIC_BASE_MSR_X2APIC_MODE, msr_struct::lo, rdmsr(), and wrmsr().
Referenced by initialize_cpus().
Definition at line 12 of file lapic.c.
References ASSERT, BIOS_INFO, CONFIG, cpu_get_feature_flags_ecx(), CPUID_X2APIC, die(), msr_struct::hi, LAPIC_BASE_MSR, LAPIC_BASE_MSR_ADDR_MASK, LAPIC_BASE_MSR_ENABLE, LAPIC_BASE_MSR_X2APIC_MODE, LAPIC_DEFAULT_BASE, lapicid(), msr_struct::lo, printk, rdmsr(), and wrmsr().
Referenced by ap_bootblock_c_entry(), ap_init(), bootblock_c_entry(), init_bsp(), initialize_cpus(), and secondary_cpu_init().
|
static |
Definition at line 126 of file lapic.h.
References cpuid_ebx(), cpuid_ext(), cpuid_get_max_func(), cpuid_result::edx, is_x2apic_mode(), and lapicid().
Referenced by agesa_state_on_entry(), cpu_add_map_entry(), cpu_index(), intel_ht_sibling(), mca_print_error(), romstage_main(), and update_save_state().
|
static |
Definition at line 62 of file lapic.h.
References CONFIG, LAPIC_BASE_MSR, LAPIC_BASE_X2APIC_ENABLED, msr_struct::lo, and rdmsr().
Referenced by acpi_madt_irq_overrides(), initial_lapicid(), lapic_busy(), lapic_read(), lapic_send_ipi(), lapic_update32(), lapic_write(), and lapicid().
|
static |
Definition at line 118 of file lapic.h.
References is_x2apic_mode(), and xapic_busy().
Referenced by smm_initiate_relocation_parallel(), wait_for_ipi_completion(), and wait_for_ipi_completion_without_printk().
|
static |
Definition at line 75 of file lapic.h.
References is_x2apic_mode(), x2apic_read(), and xapic_read().
Referenced by lapic_start_cpu(), lapicid(), smp_write_processors(), and udelay().
|
static |
Definition at line 110 of file lapic.h.
References is_x2apic_mode(), SET_LAPIC_DEST_FIELD, x2apic_send_ipi(), and xapic_send_ipi().
Referenced by lapic_send_ipi_others(), lapic_send_ipi_self(), and lapic_start_cpu().
|
static |
Definition at line 160 of file lapic.h.
References LAPIC_DEST_ALLBUT, and lapic_send_ipi().
|
static |
Definition at line 146 of file lapic.h.
References CONFIG, cpu_relax(), lapic_send_ipi(), and lapicid().
Referenced by smm_initiate_relocation_parallel(), and stop_this_cpu().
|
static |
Definition at line 91 of file lapic.h.
References is_x2apic_mode(), msr_struct::lo, mask, rdmsr(), value, wrmsr(), X2APIC_MSR_BASE_ADDRESS, xapic_read(), and xapic_write().
Referenced by setup_lapic_interrupts().
|
static |
Definition at line 83 of file lapic.h.
References is_x2apic_mode(), x2apic_write(), and xapic_write().
Referenced by init_timer(), and lapic_start_cpu().
|
static |
Definition at line 136 of file lapic.h.
References is_x2apic_mode(), LAPIC_ID, and lapic_read().
Referenced by ap_init(), bert_append_genproc(), bert_append_ia32x64(), callout_ap_entry(), enable_lapic(), get_cpu_index(), init_bsp(), initial_lapicid(), initialize_cpus(), lapic_send_ipi_self(), model_2065x_init(), route_i8259_irq0(), smp_write_processors(), stop_this_cpu(), and x86_exception().
Definition at line 68 of file lapic.c.
References boot_cpu(), LAPIC_DELIVERY_MODE_EXTINT, LAPIC_DELIVERY_MODE_MASK, LAPIC_DELIVERY_MODE_NMI, LAPIC_INPUT_POLARITY, LAPIC_LVT0, LAPIC_LVT1, LAPIC_LVT_LEVEL_TRIGGER, LAPIC_LVT_MASKED, LAPIC_SPIV, LAPIC_SPIV_ENABLE, LAPIC_TASKPRI, LAPIC_TPRI_MASK, lapic_update32(), LAPIC_VECTOR_MASK, and mask.
Referenced by ap_init(), init_bsp(), initialize_cpus(), and secondary_cpu_init().
|
static |
|
static |
Definition at line 32 of file lapic.h.
References msr_struct::lo, rdmsr(), value, and X2APIC_MSR_BASE_ADDRESS.
Referenced by lapic_read().
|
static |
Definition at line 54 of file lapic.h.
References msr_struct::hi, msr_struct::lo, wrmsr(), and X2APIC_MSR_ICR_ADDRESS.
Referenced by lapic_send_ipi().
|
static |
Definition at line 43 of file lapic.h.
References msr_struct::hi, msr_struct::lo, wrmsr(), and X2APIC_MSR_BASE_ADDRESS.
Referenced by lapic_write().
|
static |
Definition at line 27 of file lapic.h.
References LAPIC_ICR, LAPIC_ICR_BUSY, and xapic_read().
Referenced by lapic_busy().
|
static |
Definition at line 11 of file lapic.h.
References LAPIC_DEFAULT_BASE, and read32().
Referenced by lapic_read(), lapic_update32(), and xapic_busy().
|
static |
Definition at line 21 of file lapic.h.
References LAPIC_ICR, LAPIC_ICR2, and xapic_write().
Referenced by lapic_send_ipi().
|
static |
Definition at line 16 of file lapic.h.
References LAPIC_DEFAULT_BASE, and write32().
Referenced by lapic_update32(), lapic_write(), and xapic_send_ipi().