]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Small clarification of initrd handling
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 16 Nov 2006 04:31:32 +0000 (15:31 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:39:32 +0000 (20:39 +1100)
commitf79e083c2fab601a1c382282344f5a251557dbac
tree91152ed552cf67b83de15843cd479ae3fad8993f
parent3e00a5aec3d6af687e37f4e7482f5c7ecdcabd0b
[POWERPC] Small clarification of initrd handling

This patch makes the handling of the initrd (or initramfs) in the
zImage wrapper a little easier to follow.  Instead of passing the
initrd addresses out from prep_kernel() via the cryptic a1 and a2
parameters, use the global struct add_range, 'initrd'.  prep_kernel()
already passes information through the 'vmlinux' addr_range struct, so
this seems like a reasonable extension.

Some comments also clarify the logic with prep_kernel(): we use an
initrd included in the zImage if present, otherwise we use an initrd
passed in by the bootloader in the a1 and a2 parameters (yaboot, at
least, uses this mechanism to pass an initrd).

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/main.c