mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
x86: Provide a function to clean up just before booting a zimage
This function can be used by boards which want to do some clean-up before booting a zImage. Signed-off-by: Stefan Reinauer <reinauer@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
095593c030
commit
61e0ea900a
@ -39,6 +39,7 @@
|
|||||||
#ifdef CONFIG_SYS_COREBOOT
|
#ifdef CONFIG_SYS_COREBOOT
|
||||||
#include <asm/arch/timestamp.h>
|
#include <asm/arch/timestamp.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <linux/compiler.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Memory lay-out:
|
* Memory lay-out:
|
||||||
@ -282,8 +283,18 @@ int setup_zimage(struct boot_params *setup_base, char *cmd_line, int auto_boot,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Implement a weak default function for boards that optionally
|
||||||
|
* need to clean up the system before jumping to the kernel.
|
||||||
|
*/
|
||||||
|
__weak void board_final_cleanup(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void boot_zimage(void *setup_base, void *load_address)
|
void boot_zimage(void *setup_base, void *load_address)
|
||||||
{
|
{
|
||||||
|
board_final_cleanup();
|
||||||
|
|
||||||
printf("\nStarting kernel ...\n\n");
|
printf("\nStarting kernel ...\n\n");
|
||||||
|
|
||||||
#ifdef CONFIG_SYS_COREBOOT
|
#ifdef CONFIG_SYS_COREBOOT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user