[coreboot-gerrit] New patch to review for coreboot: 6e302ee gm45: Don't crash if less than 4G or RAM.

Vladimir Serbinenko (phcoder@gmail.com) gerrit at coreboot.org
Wed Nov 12 00:10:46 CET 2014


Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7438

-gerrit

commit 6e302eecba506f13d497e4e00569963a76b1be0c
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date:   Wed Nov 12 00:09:20 2014 +0100

    gm45: Don't crash if less than 4G or RAM.
    
    In such setup there is no resource 5. find_resource die()s if no resource is
    present. Use probe_resource instead.
    
    Change-Id: I6eb4a9d8712295c58281ee69ab129276d784ca2e
    Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
 src/northbridge/intel/gm45/northbridge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/northbridge/intel/gm45/northbridge.c b/src/northbridge/intel/gm45/northbridge.c
index 716ee62..fc54a8c 100644
--- a/src/northbridge/intel/gm45/northbridge.c
+++ b/src/northbridge/intel/gm45/northbridge.c
@@ -177,7 +177,7 @@ static void mch_domain_set_resources(device_t dev)
 
 	for (i = 3; i < 8; ++i) {
 		/* Report read resources. */
-		resource = find_resource(dev, i);
+		resource = probe_resource(dev, i);
 		if (resource)
 			report_resource_stored(dev, resource, "");
 	}



More information about the coreboot-gerrit mailing list