diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-03-04 22:24:52 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-12 22:35:01 -0400 |
commit | 79c8541924a220964f9f2cbed31eaa9fdb042eab (patch) | |
tree | 94e75bf65ea5cb0d40dfae7215ae432e1f914296 /arch/powerpc/boot/ops.h | |
parent | ad9d2716cfc1cda5a7e0d7bc0db45e3af8a4adbb (diff) |
[POWERPC] zImage: Cleanup and improve prep_kernel()
This patch rewrites prep_kernel() in the zImage wrapper code to be
clearer and more flexible. Notable changes:
- Handling of the initrd image from prep_kernel() has moved
into a new prep_initrd() function.
- The address of the initrd image is now added as device tree
properties, as the kernel expects.
- We only copy a packaged initrd image to a new location if it
is in danger of being clobbered when the kernel moves to its final
location, instead of always.
- By default we decompress the kernel directly to address 0,
instead of requiring it to relocate itself. Platforms (such as OF)
where doing this could clobber still-live firmware data structures can
override the vmlinux_alloc hook to provide an alternate place to
decompress the kernel.
- We no longer pass lots of information between functions in
global variables.
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/ops.h')
-rw-r--r-- | arch/powerpc/boot/ops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h index 8abb6516bb7c..fa62ff223e70 100644 --- a/arch/powerpc/boot/ops.h +++ b/arch/powerpc/boot/ops.h | |||
@@ -25,6 +25,7 @@ struct platform_ops { | |||
25 | void (*free)(void *ptr); | 25 | void (*free)(void *ptr); |
26 | void * (*realloc)(void *ptr, unsigned long size); | 26 | void * (*realloc)(void *ptr, unsigned long size); |
27 | void (*exit)(void); | 27 | void (*exit)(void); |
28 | void * (*vmlinux_alloc)(unsigned long size); | ||
28 | }; | 29 | }; |
29 | extern struct platform_ops platform_ops; | 30 | extern struct platform_ops platform_ops; |
30 | 31 | ||