[coreboot] [commit] r6163 - trunk/src/northbridge/intel/i945
repository service
svn at coreboot.org
Sat Dec 11 23:12:33 CET 2010
Author: stepan
Date: Sat Dec 11 23:12:32 2010
New Revision: 6163
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6163
Log:
catch some illegal configurations (trivial)
Signed-off-by: Stefan Reinauer <stepan at coreboot.org>
Acked-by: Stefan Reinauer <stepan at coreboot.org>
Modified:
trunk/src/northbridge/intel/i945/raminit.c
Modified: trunk/src/northbridge/intel/i945/raminit.c
==============================================================================
--- trunk/src/northbridge/intel/i945/raminit.c Sat Dec 11 23:07:07 2010 (r6162)
+++ trunk/src/northbridge/intel/i945/raminit.c Sat Dec 11 23:12:32 2010 (r6163)
@@ -541,6 +541,8 @@
highest_supported_cas = 4;
} else if (current_cas_mask & SPD_CAS_LATENCY_DDR2_3) {
highest_supported_cas = 3;
+ } else {
+ die("Invalid max. CAS.\n");
}
if (current_cas_mask & SPD_CAS_LATENCY_DDR2_3) {
current_cas = 3;
@@ -548,6 +550,8 @@
current_cas = 4;
} else if (current_cas_mask & SPD_CAS_LATENCY_DDR2_5) {
current_cas = 5;
+ } else {
+ die("Invalid CAS.\n");
}
idx = highest_supported_cas - current_cas;
More information about the coreboot
mailing list