blob: bf5c0bcc79074b9b5dbc14a1a8a31cde6f68a12f [file] [log] [blame]
Ronald G. Minnich98312442016-02-12 22:37:48 +00001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2013 Google, Inc.
5 *
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#include <cbmem.h>
17
18void *cbmem_top(void)
19{
20 /* Top of cbmem is at lowest usable DRAM address below 4GiB. */
21 /* For now, last 1M of 4G */
22 void *ptr = (void *) ((1ULL << 32) - 1048576);
23 return ptr;
24}
25