From 6e53f50082cfac4ec2d06d2ff6515781190ad1c0 Mon Sep 17 00:00:00 2001 From: Eric Biederman Date: Wed, 27 Oct 2004 08:53:57 +0000 Subject: sizeram removal/conversion. - mem.h and sizeram.h and all includes killed because the are no longer needed. - linuxbios_table.c updated to directly look at the device tree for occupied memory areas. - first very incomplete stab a converting the ppc code to work with the dynamic device tree - Ignore resources before we have read them from devices, (if the device is disabled ignore it's resources). - First stab at Pentium-M support - add part/init_timer.h making init_timer conditional until there is a better way of handling it. - Converted all of the x86 sizeram to northbridge set_resources functions. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1722 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/devices/device.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/devices') diff --git a/src/devices/device.c b/src/devices/device.c index 5f28c0d49e..96559c5833 100644 --- a/src/devices/device.c +++ b/src/devices/device.c @@ -203,6 +203,8 @@ static void find_largest_resource(struct pick_largest_state *state, struct device *curdev; for(curdev = bus->children; curdev; curdev = curdev->sibling) { int i; + /* Ignore disabled devices */ + if (!curdev->have_resources) continue; for(i = 0; i < curdev->resources; i++) { struct resource *resource = &curdev->resource[i]; /* If it isn't the right kind of resource ignore it */ -- cgit v1.2.3