]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: Rewrite bootm.c to make it similar to ARM
authorSimon Glass <sjg@chromium.org>
Mon, 20 Oct 2014 03:11:20 +0000 (21:11 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Oct 2014 15:03:05 +0000 (09:03 -0600)
commit0d0ba59ccd135addc345568e5678400d01d356db
treea660432d0636b52df63cf9d018a71771cbbf0d45
parent43e84bf866e24b037dc907b5ddbff00212c6bdb9
x86: Rewrite bootm.c to make it similar to ARM

The x86 bootm code is quite special, and geared to zimage. Adjust it
to support device tree and make it more like the ARM code, with
separate bootm stages and functions for each stage.

Create a function announce_and_cleanup() to handle printing the
"Starting kernel ..." message and put it in bootm so it is in one
place and can be used by any loading code. Also move the
board_final_cleanup() function into bootm.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/include/asm/bootm.h [new file with mode: 0644]
arch/x86/lib/bootm.c
arch/x86/lib/zimage.c