From 40412c63e6978aa180ce1cea94f4b76812231880 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Wed, 12 Nov 2014 00:09:20 +0100 Subject: gm45: Don't crash if less than 4G of RAM are present. 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 Reviewed-on: http://review.coreboot.org/7438 Reviewed-by: Edward O'Callaghan Tested-by: build bot (Jenkins) --- src/northbridge/intel/gm45/northbridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/northbridge') diff --git a/src/northbridge/intel/gm45/northbridge.c b/src/northbridge/intel/gm45/northbridge.c index 716ee629d6..fc54a8c1b1 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, ""); } -- cgit v1.2.3