From 135a966d34123cbc4ab5959f92e5364651c1ad55 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 7 Apr 2010 03:41:39 +0000 Subject: [PATCH] it's a long term, give the compiler a chance to breathe .. ;-) Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5369 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/via/vt8601/raminit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/northbridge/via/vt8601/raminit.c b/src/northbridge/via/vt8601/raminit.c index c898453ed1..cb13ad4e98 100644 --- a/src/northbridge/via/vt8601/raminit.c +++ b/src/northbridge/via/vt8601/raminit.c @@ -201,7 +201,8 @@ static unsigned long spd_module_size(unsigned char slot) /* grand total. You have rows+cols addressing, * times of banks, times * width of data in bytes */ /* Width is assumed to be 64 bits == 8 bytes */ - value = (1 << (cols + rows)) * banks * 8; + value = (1 << (cols + rows)); + value *= banks * 8; print_info_hex32(value); print_info(" bytes "); /* Return in 8MB units */