coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
finalize.c File Reference
#include <acpi/acpi.h>
#include <cpu/x86/mp.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/msr.h>
#include <bootstate.h>
#include <console/console.h>
#include <amdblocks/acpi.h>
#include <types.h>
Include dependency graph for finalize.c:

Go to the source code of this file.

Functions

static void per_core_finalize (void *unused)
 
static void finalize_cores (void)
 
static void soc_finalize (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_OS_RESUME, BS_ON_ENTRY, soc_finalize, NULL)
 
 BOOT_STATE_INIT_ENTRY (BS_PAYLOAD_LOAD, BS_ON_EXIT, soc_finalize, NULL)
 

Function Documentation

◆ BOOT_STATE_INIT_ENTRY() [1/2]

BOOT_STATE_INIT_ENTRY ( BS_OS_RESUME  ,
BS_ON_ENTRY  ,
soc_finalize  ,
NULL   
)

◆ BOOT_STATE_INIT_ENTRY() [2/2]

BOOT_STATE_INIT_ENTRY ( BS_PAYLOAD_LOAD  ,
BS_ON_EXIT  ,
soc_finalize  ,
NULL   
)

◆ finalize_cores()

static void finalize_cores ( void  )
static

Definition at line 31 of file finalize.c.

References BIOS_SPEW, BIOS_WARNING, CB_SUCCESS, mp_run_on_all_cpus(), NULL, per_core_finalize(), and printk.

Referenced by soc_finalize().

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

◆ per_core_finalize()

static void per_core_finalize ( void unused)
static

Definition at line 12 of file finalize.c.

References CONFIG, HWCR_MSR, msr_struct::lo, mask, rdmsr(), SMM_LOCK, SMM_MASK_MSR, SMM_TSEG_VALID, and wrmsr().

Referenced by finalize_cores().

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

◆ soc_finalize()

static void soc_finalize ( void unused)
static

Definition at line 39 of file finalize.c.

References acpi_clear_pm_gpe_status(), acpi_disable_sci(), acpi_enable_sci(), acpi_is_wakeup_s3(), CONFIG, finalize_cores(), post_code, and POST_OS_BOOT.

Here is the call graph for this function: