summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/northbridge/intel/nehalem/raminit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/northbridge/intel/nehalem/raminit.c b/src/northbridge/intel/nehalem/raminit.c
index 2b71c81825..0b5f44c73f 100644
--- a/src/northbridge/intel/nehalem/raminit.c
+++ b/src/northbridge/intel/nehalem/raminit.c
@@ -1010,6 +1010,9 @@ static void compute_derived_timings(struct raminfo *info)
}
}
+ if (count == 0)
+ die("No memory ranks found for channel %u\n", channel);
+
info->avg4044[channel] = sum / count;
info->max4048[channel] = max_of_unk;
}