coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
memory_clear.c File Reference
#include <memrange.h>
#include <bootmem.h>
#include <bootstate.h>
#include <symbols.h>
#include <console/console.h>
#include <arch/memory_clear.h>
#include <string.h>
#include <security/memory/memory.h>
#include <cbmem.h>
#include <acpi/acpi.h>
Include dependency graph for memory_clear.c:

Go to the source code of this file.

Macros

#define memset_pae(a, b, c, d, e)   0
 
#define MEMSET_PAE_PGTL_ALIGN   0
 
#define MEMSET_PAE_PGTL_SIZE   0
 
#define MEMSET_PAE_PGTL_SIZE   0
 
#define MEMSET_PAE_VMEM_ALIGN   0
 

Functions

static uintptr_t get_free_memory_range (struct memranges *mem, const resource_t align, const resource_t size)
 
static void clear_memory (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_DEV_INIT, BS_ON_EXIT, clear_memory, NULL)
 

Macro Definition Documentation

◆ memset_pae

#define memset_pae (   a,
  b,
  c,
  d,
 
)    0

Definition at line 6 of file memory_clear.c.

◆ MEMSET_PAE_PGTL_ALIGN

#define MEMSET_PAE_PGTL_ALIGN   0

Definition at line 7 of file memory_clear.c.

◆ MEMSET_PAE_PGTL_SIZE [1/2]

#define MEMSET_PAE_PGTL_SIZE   0

Definition at line 9 of file memory_clear.c.

◆ MEMSET_PAE_PGTL_SIZE [2/2]

#define MEMSET_PAE_PGTL_SIZE   0

Definition at line 9 of file memory_clear.c.

◆ MEMSET_PAE_VMEM_ALIGN

#define MEMSET_PAE_VMEM_ALIGN   0

Definition at line 10 of file memory_clear.c.

Function Documentation

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_DEV_INIT  ,
BS_ON_EXIT  ,
clear_memory  ,
NULL   
)

◆ clear_memory()

◆ get_free_memory_range()

static uintptr_t get_free_memory_range ( struct memranges mem,
const resource_t  align,
const resource_t  size 
)
static

Definition at line 25 of file memory_clear.c.

References ALIGN_UP, BIOS_ERR, BM_MEM_RAM, memranges_each_entry, printk, range_entry_base(), range_entry_end(), and range_entry_tag().

Referenced by clear_memory().

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