mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 18:30:28 +03:00
[lkrn] Shut down devices before jumping to kernel entry point
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
|||||||
#include <ipxe/segment.h>
|
#include <ipxe/segment.h>
|
||||||
#include <ipxe/io.h>
|
#include <ipxe/io.h>
|
||||||
#include <ipxe/fdt.h>
|
#include <ipxe/fdt.h>
|
||||||
|
#include <ipxe/init.h>
|
||||||
#include <ipxe/lkrn.h>
|
#include <ipxe/lkrn.h>
|
||||||
|
|
||||||
/** @file
|
/** @file
|
||||||
@@ -227,6 +228,9 @@ static int lkrn_exec ( struct image *image ) {
|
|||||||
if ( ( rc = lkrn_load ( image, &ctx ) ) != 0 )
|
if ( ( rc = lkrn_load ( image, &ctx ) ) != 0 )
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
/* Shut down ready for boot */
|
||||||
|
shutdown_boot();
|
||||||
|
|
||||||
/* Jump to kernel entry point */
|
/* Jump to kernel entry point */
|
||||||
DBGC ( image, "LKRN %s jumping to kernel at %#08lx\n",
|
DBGC ( image, "LKRN %s jumping to kernel at %#08lx\n",
|
||||||
image->name, ctx.entry );
|
image->name, ctx.entry );
|
||||||
|
|||||||
Reference in New Issue
Block a user