From 0d0ba59ccd135addc345568e5678400d01d356db Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 19 Oct 2014 21:11:20 -0600 Subject: 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 --- arch/x86/include/asm/bootm.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 arch/x86/include/asm/bootm.h (limited to 'arch/x86/include') 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 -- cgit v1.1