coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cpu.h File Reference
#include <arch/cpu.h>
#include <stdint.h>
Include dependency graph for cpu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __cpu_driver   __attribute__((unused))
 

Functions

void cpu_initialize (unsigned int cpu_index)
 
int cpu_get_apic_id (int logical_cpu)
 
uintptr_t cpu_get_lapic_addr (void)
 
void cpu_add_map_entry (unsigned int index)
 
void initialize_cpus (struct bus *cpu_bus)
 
asmlinkage void secondary_cpu_init (unsigned int cpu_index)
 
int cpu_phys_address_size (void)
 

Variables

struct cpu_driver _cpu_drivers []
 start of compile time generated pci driver array More...
 
struct cpu_driver _ecpu_drivers []
 end of compile time generated pci driver array More...
 

Macro Definition Documentation

◆ __cpu_driver

#define __cpu_driver   __attribute__((unused))

Definition at line 21 of file cpu.h.

Function Documentation

◆ cpu_add_map_entry()

void cpu_add_map_entry ( unsigned int  index)

Definition at line 217 of file cpu.c.

References cpus_default_apic_id, and initial_lapicid().

Referenced by ap_init(), init_bsp(), initialize_cpus(), and start_cpu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cpu_get_apic_id()

int cpu_get_apic_id ( int  logical_cpu)

Definition at line 223 of file cpu.c.

References cpus_default_apic_id.

Referenced by adjust_smm_apic_id_map(), cpu_index(), and mp_get_processor_info().

Here is the caller graph for this function:

◆ cpu_get_lapic_addr()

uintptr_t cpu_get_lapic_addr ( void  )

Definition at line 63 of file lapic.c.

References LAPIC_DEFAULT_BASE.

Referenced by acpi_create_madt(), cpu_pci_domain_read_resources(), and mptable_init().

Here is the caller graph for this function:

◆ cpu_initialize()

void cpu_initialize ( unsigned int  cpu_index)

Definition at line 231 of file cpu.c.

References BIOS_DEBUG, BIOS_INFO, c, cpu_info(), cpu_vendor_name(), device::device, die(), device::enabled, get_fms(), identify_cpu(), info, device_operations::init, device::initialized, device::ops, post_log_clear(), post_log_path(), printk, set_cpu_ops(), and device::vendor.

Referenced by initialize_cpus(), mp_initialize_cpu(), and secondary_cpu_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cpu_phys_address_size()

◆ initialize_cpus()

void initialize_cpus ( struct bus cpu_bus)

◆ secondary_cpu_init()

asmlinkage void secondary_cpu_init ( unsigned int  cpu_index)

Variable Documentation

◆ _cpu_drivers

struct cpu_driver _cpu_drivers[]
extern

start of compile time generated pci driver array

Referenced by find_cpu_driver().

◆ _ecpu_drivers

struct cpu_driver _ecpu_drivers[]
extern

end of compile time generated pci driver array

Referenced by find_cpu_driver().