summaryrefslogtreecommitdiff
path: root/arch/x86/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-19 21:11:20 -0600
committerSimon Glass <sjg@chromium.org>2014-10-22 09:03:05 -0600
commit0d0ba59ccd135addc345568e5678400d01d356db (patch)
treea660432d0636b52df63cf9d018a71771cbbf0d45 /arch/x86/include
parent43e84bf866e24b037dc907b5ddbff00212c6bdb9 (diff)
downloadu-boot-imx-0d0ba59ccd135addc345568e5678400d01d356db.zip
u-boot-imx-0d0ba59ccd135addc345568e5678400d01d356db.tar.gz
u-boot-imx-0d0ba59ccd135addc345568e5678400d01d356db.tar.bz2
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>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/bootm.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/include/asm/bootm.h b/arch/x86/include/asm/bootm.h
new file mode 100644
index 0000000..033ab79
--- /dev/null
+++ b/arch/x86/include/asm/bootm.h
@@ -0,0 +1,12 @@
+/*
+ * Copyright (c) 2013, Google Inc.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef ARM_BOOTM_H
+#define ARM_BOOTM_H
+
+void bootm_announce_and_cleanup(void);
+
+#endif