summaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-power8/cbmem.c
blob: 15c20f8de426ffabf96952415ab25152dcd960a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: GPL-2.0-only */

#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;
}