blob: e1999e888e5834738cd83b2548043f993e606402 [file] [log] [blame]
Stefan Reinauer80e62932013-07-29 15:52:23 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2013 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
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.
Stefan Reinauer80e62932013-07-29 15:52:23 -070014 */
15
Stefan Reinauer80e62932013-07-29 15:52:23 -070016#include <cbmem.h>
Julius Werner80af4422014-10-20 13:18:56 -070017#include <soc/cpu.h>
18#include <stddef.h>
Stefan Reinauer80e62932013-07-29 15:52:23 -070019
20void *cbmem_top(void)
21{
22 return (void *)(get_fb_base_kb() * KiB);
23}