]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: Refactor the zboot innards so they can be reused with a vboot image
authorGabe Black <gabeblack@chromium.org>
Mon, 5 Dec 2011 12:09:26 +0000 (12:09 +0000)
committerGraeme Russ <graeme.russ@gmail.com>
Mon, 19 Dec 2011 02:26:16 +0000 (13:26 +1100)
commit69370d144a9e8133461f1662131fbf97ad121165
treebf42baa8da26427c6cf23a8b92ff954dd0715f0a
parentf08fa7a2018495c6f2a5eaba5f6d8fdcbc67e6c6
x86: Refactor the zboot innards so they can be reused with a vboot image

If vboot successfully verifies a kernel, it will leave it in place and
basically ready to boot. The zeropage table which is part of the x86 boot
protocol is at the end of the kernel, though, instead of the beginning, and
because the image is already in place there's no need to copy it around.
This change refactors the code which implements the zboot command so that
the configuration of the zeropage table and loading the pieces of the
kernel into memory are done separately. Also, because the command line goes
before the zeropage table in vboot which is somewhat incompatible with the
normal protocol, where to put the command line is a now a parameter instead
of being hard coded.

Signed-off-by: Gabe Black <gabeblack@chromium.org>
arch/x86/include/asm/zimage.h
arch/x86/lib/bootm.c
arch/x86/lib/zimage.c