diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2014-11-12 00:09:20 +0100 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2014-11-12 20:44:25 +0100 |
commit | 40412c63e6978aa180ce1cea94f4b76812231880 (patch) | |
tree | b7d89a0850cef41af4b3b4b2ba61dced454bf150 /src | |
parent | 476f7316a1e2596cc5c3e83d05003203a042a4eb (diff) |
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 <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/7438
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src')
-rw-r--r-- | src/northbridge/intel/gm45/northbridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, ""); } |