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-or-later */
2 
3 #include <cbmem.h>
4 #include <ramdetect.h>
5 #include <symbols.h>
6 
7 void *cbmem_top_chipset(void)
8 {
9  return _dram + (probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB) * MiB);
10 }
#define MiB
Definition: helpers.h:76
void * cbmem_top_chipset(void)
Definition: cbmem.c:6
u8 _dram[]
size_t probe_ramsize(const uintptr_t dram_start, const size_t probe_size)
Definition: ramdetect.c:40
unsigned long uintptr_t
Definition: stdint.h:21