summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2013-02-11 11:53:42 -0800
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-02-11 21:12:56 +0100
commit5e11f849f77552acc01c6eb661f402d02afb61e8 (patch)
tree285814d72bddd556729bc1fd5046161add6362bc /src
parent600784e8b9d11dd1e1afc1918e6eda004ac69de4 (diff)
downloadcoreboot-5e11f849f77552acc01c6eb661f402d02afb61e8.tar.xz
snow: fix high_tables_base calculation
It was off by a few orders of magnitude. D'oh. Change-Id: I9c8a3d5bd9ce261f914cfc7d05d86a1c61519b81 Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/2355 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/snow/ramstage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/snow/ramstage.c b/src/mainboard/google/snow/ramstage.c
index b779999c51..a3e9236ac5 100644
--- a/src/mainboard/google/snow/ramstage.c
+++ b/src/mainboard/google/snow/ramstage.c
@@ -33,7 +33,7 @@ void main(void)
/* place at top of physical memory */
high_tables_size = CONFIG_COREBOOT_TABLES_SIZE;
high_tables_base = CONFIG_SYS_SDRAM_BASE +
- ((CONFIG_DRAM_SIZE_MB * 1024) * CONFIG_NR_DRAM_BANKS) -
+ ((CONFIG_DRAM_SIZE_MB << 20UL) * CONFIG_NR_DRAM_BANKS) -
CONFIG_COREBOOT_TABLES_SIZE;
#endif