Gitiles
Code Review
Sign In
review.coreboot.org
/
coreboot
/
f4c496d3e3e779b3d870d13e1e359a3b5f7087cb
/
.
/
src
/
soc
/
ucb
/
riscv
/
cbmem.c
blob: 5c423a05bbc26428190221463f3baac02b6ad4fd [
file
] [
log
] [
blame
]
/* SPDX-License-Identifier: GPL-2.0-only */
#include
<cbmem.h>
#include
<symbols.h>
#include
<ramdetect.h>
uintptr_t
cbmem_top_chipset
(
void
)
{
return
(
uintptr_t
)
_dram
+
(
probe_ramsize
((
uintptr_t
)
_dram
,
CONFIG_DRAM_SIZE_MB
)
*
MiB
);
}