![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <assert.h>
#include <bootstate.h>
#include <console/console.h>
#include <cpu/cpu.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/msr.h>
#include <cpu/x86/mp.h>
#include <cpu/intel/microcode.h>
#include <intelblocks/cfg.h>
#include <intelblocks/cpulib.h>
#include <intelblocks/fast_spi.h>
#include <intelblocks/mp_init.h>
#include <intelblocks/msr.h>
#include <soc/cpu.h>
Go to the source code of this file.
Functions | |
static void | init_one_cpu (struct device *dev) |
int | get_cpu_count (void) |
void | get_microcode_info (const void **microcode, int *parallel) |
void | init_cpus (void) |
static void | coreboot_init_cpus (void *unused) |
static void | post_cpus_add_romcache (void) |
static void | wrapper_x86_setup_mtrrs (void *unused) |
static void | post_cpus_init (void *unused) |
BOOT_STATE_INIT_ENTRY (BS_DEV_INIT_CHIPS, BS_ON_ENTRY, coreboot_init_cpus, NULL) | |
BOOT_STATE_INIT_ENTRY (BS_WRITE_TABLES, BS_ON_EXIT, post_cpus_init, NULL) | |
BOOT_STATE_INIT_ENTRY (BS_OS_RESUME, BS_ON_ENTRY, post_cpus_init, NULL) | |
Variables | |
static struct device_operations | cpu_dev_ops |
static const struct cpu_device_id | cpu_table [] |
static const struct cpu_driver driver | __cpu_driver |
BOOT_STATE_INIT_ENTRY | ( | BS_DEV_INIT_CHIPS | , |
BS_ON_ENTRY | , | ||
coreboot_init_cpus | , | ||
NULL | |||
) |
BOOT_STATE_INIT_ENTRY | ( | BS_OS_RESUME | , |
BS_ON_ENTRY | , | ||
post_cpus_init | , | ||
NULL | |||
) |
BOOT_STATE_INIT_ENTRY | ( | BS_WRITE_TABLES | , |
BS_ON_EXIT | , | ||
post_cpus_init | , | ||
NULL | |||
) |
Definition at line 145 of file mp_init.c.
References CONFIG, init_cpus(), intel_microcode_find(), intel_microcode_load_unlocked(), and microcode_patch.
int get_cpu_count | ( | void | ) |
Definition at line 91 of file mp_init.c.
References BIOS_DEBUG, cpu_read_topology(), and printk.
Definition at line 111 of file mp_init.c.
References intel_microcode_find().
Definition at line 133 of file mp_init.c.
References add_more_links(), assert, dev_find_path(), DEVICE_PATH_CPU_CLUSTER, device::link_list, NULL, and soc_init_cpus().
Referenced by coreboot_init_cpus(), and do_mpinit_after_fsp().
Definition at line 156 of file mp_init.c.
References CONFIG, and fast_spi_cache_bios_region().
Referenced by post_cpus_init().
Definition at line 170 of file mp_init.c.
References BIOS_ERR, CB_SUCCESS, mp_run_on_all_cpus(), NULL, post_cpus_add_romcache(), printk, wrapper_x86_setup_mtrrs(), and x86_mtrr_check().
Definition at line 164 of file mp_init.c.
References x86_setup_mtrrs_with_detect().
Referenced by post_cpus_init().
|
static |
|
static |
|
static |