coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
memmap.c File Reference
#include <amdblocks/memmap.h>
#include <amdblocks/smm.h>
#include <arch/bert_storage.h>
#include <console/console.h>
#include <cbmem.h>
#include <cpu/amd/msr.h>
#include <cpu/x86/smm.h>
#include <fsp/util.h>
#include <FspGuids.h>
#include <memrange.h>
#include <types.h>
Include dependency graph for memmap.c:

Go to the source code of this file.

Functions

void memmap_stash_early_dram_usage (void)
 
const struct memmap_early_drammemmap_get_early_dram_usage (void)
 
void smm_region (uintptr_t *start, size_t *size)
 
void bert_reserved_region (void **start, size_t *size)
 

Function Documentation

◆ bert_reserved_region()

void bert_reserved_region ( void **  start,
size_t size 
)

Definition at line 63 of file memmap.c.

References BIOS_INFO, cbmem_add(), CBMEM_ID_ACPI_BERT, and printk.

Here is the call graph for this function:

◆ memmap_get_early_dram_usage()

const struct memmap_early_dram* memmap_get_early_dram_usage ( void  )

Definition at line 28 of file memmap.c.

References cbmem_find(), CBMEM_ID_CB_EARLY_DRAM, and die().

Referenced by read_resources().

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

◆ memmap_stash_early_dram_usage()

void memmap_stash_early_dram_usage ( void  )

Definition at line 15 of file memmap.c.

References memmap_early_dram::base, cbmem_add(), CBMEM_ID_CB_EARLY_DRAM, die(), REGION_SIZE, and memmap_early_dram::size.

Referenced by car_stage_entry().

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

◆ smm_region()

void smm_region ( uintptr_t start,
size_t size 
)

Definition at line 38 of file memmap.c.

References BIOS_ERR, clear_tvalid(), fsp_find_range_hob(), printk, range_entry_base(), and range_entry_size().

Here is the call graph for this function: