coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#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>
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) | |
#define memset_pae | ( | a, | |
b, | |||
c, | |||
d, | |||
e | |||
) | 0 |
Definition at line 6 of file memory_clear.c.
#define MEMSET_PAE_PGTL_ALIGN 0 |
Definition at line 7 of file memory_clear.c.
#define MEMSET_PAE_PGTL_SIZE 0 |
Definition at line 9 of file memory_clear.c.
#define MEMSET_PAE_PGTL_SIZE 0 |
Definition at line 9 of file memory_clear.c.
#define MEMSET_PAE_VMEM_ALIGN 0 |
Definition at line 10 of file memory_clear.c.
BOOT_STATE_INIT_ENTRY | ( | BS_DEV_INIT | , |
BS_ON_EXIT | , | ||
clear_memory | , | ||
NULL | |||
) |
Definition at line 54 of file memory_clear.c.
References acpi_is_wakeup_s3(), BIOS_DEBUG, BIOS_ERR, BIOS_SPEW, BM_MEM_RAM, BM_MEM_TABLE, cbmem_get_region(), ENV_X86, get_free_memory_range(), IORESOURCE_ASSIGNED, IORESOURCE_CACHEABLE, IORESOURCE_FIXED, IORESOURCE_MEM, IORESOURCE_STORED, memranges_each_entry, memranges_init, memranges_insert(), memranges_teardown(), memset(), memset_pae, MEMSET_PAE_PGTL_ALIGN, MEMSET_PAE_PGTL_SIZE, MEMSET_PAE_VMEM_ALIGN, NULL, printk, range_entry_base(), range_entry_end(), range_entry_size(), range_entry_tag(), and security_clear_dram_request().
|
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().