[PATCH/RFC] add proc_dir_entry fields to device_node
Nathan Lynch
nathanl at austin.ibm.com
Tue Oct 7 05:12:38 EST 2003
> The comment is valid. You cannot change the format of struct
> device_node on ppc32 without breaking BootX booting :(
>
> The solution to this is to finally break it by having a conversion
> step between the BootX-passed device-tree and the in-kernel one
What about something like this as a short term solution? The ppc64
versions of the macros would store the proc_dir_entry pointers in the
device nodes as they are added, e.g.
#define set_node_proc_entry(node,entry) node->pde = entry
#define set_node_name_link(node,entry) node->name_link = entry
#define set_node_addr_link(node,entry) node->addr_link = entry
while the ppc versions are no-ops. This would preserve source
compatibility while keeping us from breaking BootX.
Separate patches against kernel.org 2.6.0-test6 attached.
Nathan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: proc_devtree.patch
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20031006/d10b3961/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc_device_node.patch
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20031006/d10b3961/attachment.txt>
More information about the Linuxppc-dev
mailing list