Done with sed and God Lines. Only done for C-like code for now. Change-Id: I68d2a8ac6f201f3c1131252b2b53b2b17ece1db6 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40073 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
13 lines
304 B
C
13 lines
304 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* This file is part of the coreboot project. */
|
|
|
|
#include <cbmem.h>
|
|
|
|
void *cbmem_top_chipset(void)
|
|
{
|
|
/* Top of cbmem is at lowest usable DRAM address below 4GiB. */
|
|
/* For now, last 1M of 4G */
|
|
void *ptr = (void *) ((1ULL << 32) - 1048576);
|
|
return ptr;
|
|
}
|