[LinuxBIOS] r504 - LinuxBIOSv3/arch/x86
svn at openbios.org
svn at openbios.org
Wed Oct 10 18:55:04 CEST 2007
Author: stepan
Date: 2007-10-10 18:55:03 +0200 (Wed, 10 Oct 2007)
New Revision: 504
Modified:
LinuxBIOSv3/arch/x86/linuxbios_table.c
Log:
minor changes to remove a warning here. (trivial)
Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>
Modified: LinuxBIOSv3/arch/x86/linuxbios_table.c
===================================================================
--- LinuxBIOSv3/arch/x86/linuxbios_table.c 2007-10-04 05:37:24 UTC (rev 503)
+++ LinuxBIOSv3/arch/x86/linuxbios_table.c 2007-10-10 16:55:03 UTC (rev 504)
@@ -394,13 +394,14 @@
struct lb_devtree *lb_devtree(struct lb_header *head)
{
struct lb_devtree *lbdev = NULL;
- struct device *dev = NULL;
lbdev = (struct lb_devtree *)lb_new_record(head);
lbdev->tag = LB_TAG_DEVTREE_PTR;
lbdev->size = sizeof(*lbdev);
- lbdev->dev_root_ptr = &dev_root;
+ lbdev->dev_root_ptr = (u32)&dev_root; // XXX ouch.
+ // FIXME we should either copy the device tree completely
+ // or at least mark it reserved.
return lbdev;
}
More information about the coreboot
mailing list