tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / northbridge / intel / nehalem / ram_calc.c
blob60ac2a7010e7707e8c1e055696e01f698e3ebc7a
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2013 Vladimir Serbinenko.
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.
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.
16 #define __SIMPLE_DEVICE__
18 #include <arch/io.h>
19 #include <cbmem.h>
20 #include "nehalem.h"
22 static uintptr_t smm_region_start(void)
24 /* Base of TSEG is top of usable DRAM */
25 uintptr_t tom = pci_read_config32(PCI_DEV(0,0,0), TSEG);
26 return tom;
29 void *cbmem_top(void)
31 return (void *) smm_region_start();