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 the pointer to cbmem top. Otherwise, it could lead to
18  * issues with components that utilize cbmem in romstage
19  * (e.g. vboot_locator for loading ipq blobs before DRAM is
20  * initialized).
21  */
23  return NULL;
24 
25  return _memlayout_cbmem_top;
26 }
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