aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/nehalem/ram_calc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/northbridge/intel/nehalem/ram_calc.c')
-rw-r--r--src/northbridge/intel/nehalem/ram_calc.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/northbridge/intel/nehalem/ram_calc.c b/src/northbridge/intel/nehalem/ram_calc.c
index db57a3d7cd..d36684e99e 100644
--- a/src/northbridge/intel/nehalem/ram_calc.c
+++ b/src/northbridge/intel/nehalem/ram_calc.c
@@ -23,9 +23,14 @@
#include <cbmem.h>
#include "nehalem.h"
-unsigned long get_top_of_ram(void)
+static uintptr_t smm_region_start(void)
{
/* Base of TSEG is top of usable DRAM */
- u32 tom = pci_read_config32(PCI_DEV(0,0,0), TSEG);
- return (unsigned long) tom;
+ uintptr_t tom = pci_read_config32(PCI_DEV(0,0,0), TSEG);
+ return tom;
+}
+
+void *cbmem_top(void)
+{
+ return (void *) smm_region_start();
}