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

Go to the source code of this file.

Functions

int is_sgx_supported (void)
 
void prmrr_core_configure (void)
 
void sgx_configure (void *unused)
 

Function Documentation

◆ is_sgx_supported()

int is_sgx_supported ( void  )

Definition at line 15 of file sgx.c.

References cpuid_ext(), cpuid_result::ebx, MTRR_CAP_MSR, MTRR_CAP_PRMRR, rdmsr(), and SGX_SUPPORTED.

Referenced by prmrr_core_configure(), sgx_configure(), and sgx_fill_ssdt().

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

◆ prmrr_core_configure()

void prmrr_core_configure ( void  )

Definition at line 25 of file sgx.c.

References BIOS_ERR, BIOS_INFO, intel_ht_sibling(), is_sgx_supported(), msr_struct::lo, MSR_PRMRR_PHYS_BASE, MSR_PRMRR_PHYS_MASK, MTRR_TYPE_WRBACK, printk, PRMRR_PHYS_MASK_LOCK, PRMRR_PHYS_MASK_VALID, rdmsr(), soc_get_uncore_prmmr_base_and_mask(), and wrmsr().

Referenced by soc_core_init().

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

◆ sgx_configure()

void sgx_configure ( void unused)

Definition at line 183 of file sgx.c.

References activate_sgx(), BIOS_ERR, CONFIG, cpu_lt_lock_memory(), enable_sgx(), intel_ht_sibling(), intel_microcode_find(), intel_microcode_load_unlocked(), is_prmrr_approved(), is_prmrr_set(), is_sgx_supported(), lock_sgx(), microcode_patch, owner_epoch_update(), and printk.

Referenced by post_mp_init().

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