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/display.h>
5 #include <soc/sdram.h>
6 
7 void *cbmem_top_chipset(void)
8 {
9  return (void *)((sdram_max_addressable_mb() - FB_SIZE_MB) << 20UL);
10 }
void * cbmem_top_chipset(void)
Definition: cbmem.c:6
uintptr_t sdram_max_addressable_mb(void)
Definition: sdram.c:630
#define FB_SIZE_MB
Definition: display.h:11