coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cbmem.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <cbmem.h>
4 #include <soc/soc_services.h>
5 
7 
9 {
11 }
12 
13 void *cbmem_top_chipset(void)
14 {
15  /*
16  * In romstage, make sure that cbmem backing store is ready before
17  * returning pointer to cbmem top. Otherwise, it could lead to issues
18  * with components that utilize cbmem in romstage (e.g. vboot_locator
19  * for loading ipq blobs before DRAM is initialized).
20  */
22  return NULL;
23 
24  return _memlayout_cbmem_top;
25 }
void * cbmem_top_chipset(void)
Definition: cbmem.c:6
u8 _memlayout_cbmem_top[]
void ipq_cbmem_backing_store_ready(void)
Definition: cbmem.c:8
static int cbmem_backing_store_ready
Definition: cbmem.c:6
#define NULL
Definition: stddef.h:19