From 25fc532838f55938b59ad4337990c487ac663cc7 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Sun, 7 Dec 2014 13:05:44 +0100 Subject: [PATCH] nehalem/raminit: Add decorations to specify that empty loop is intended so. Change-Id: I6a05683daa6105e26017d1abf45881a9ef93ea30 Signed-off-by: Vladimir Serbinenko Reviewed-on: http://review.coreboot.org/7683 Reviewed-by: Edward O'Callaghan Tested-by: build bot (Jenkins) --- src/northbridge/intel/nehalem/raminit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/northbridge/intel/nehalem/raminit.c b/src/northbridge/intel/nehalem/raminit.c index fb82484444..9ca98d5a2c 100644 --- a/src/northbridge/intel/nehalem/raminit.c +++ b/src/northbridge/intel/nehalem/raminit.c @@ -4571,7 +4571,9 @@ void raminit(const int s3resume, const u8 *spd_addrmap) write_mchbar32(0x140, read_mchbar32(0x140) & ~0x07000000); write_mchbar32(0x138, read_mchbar32(0x138) & ~0x07000000); write_mchbar32(0x130, 0x31111301); - while (read_mchbar32(0x130) & 1) ; + /* Wait until REG130b0 is 1. */ + while (read_mchbar32(0x130) & 1) + ; { u32 t;