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
}
MiB
#define MiB
Definition:
helpers.h:76
cbmem.h
cbmem_top_chipset
void * cbmem_top_chipset(void)
Definition:
cbmem.c:6
_dram
u8 _dram[]
ramdetect.h
probe_ramsize
size_t probe_ramsize(const uintptr_t dram_start, const size_t probe_size)
Definition:
ramdetect.c:40
uintptr_t
unsigned long uintptr_t
Definition:
stdint.h:21
src
mainboard
emulation
qemu-aarch64
cbmem.c
Generated by
1.9.1