[PATCH] (2.6) put prom.c on a diet

Nathan Lynch nathanl at austin.ibm.com
Wed Feb 18 10:37:11 EST 2004


Hi-

This patch separates the Open Firmware "client" code which runs early in
the boot process from code which is used to access and manipulate the
kernel's copy of the Open Firmware device tree. The former remains in
prom.c; the latter is placed in a new file, of_devtree.c.

I tried to be fairly aggressive about pulling everything out of prom.c
that could conceivably be used during normal system functioning after
the system has booted.

This has been compile-tested and booted on a Power4 lpar.  I believe I've
avoided breaking any builds, please point out anything I've missed.  Feel free
to suggest a different name for the new file.  Also, please help me get the
author credits right :)

Nathan

arch/ppc64/kernel/Makefile     |    2
arch/ppc64/kernel/of_devtree.c | 1025 ++++++++++++++++++++++++++++++++++++++++
arch/ppc64/kernel/prom.c       | 1030 -----------------------------------------
  include/asm-ppc64/prom.h       |   24
4 files changed, 1049 insertions(+), 1032 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: split_prom.c.patch.bz2
Type: application/x-bzip
Size: 9924 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20040217/f2e74a29/attachment.bin 


More information about the Linuxppc64-dev mailing list