From e68a6ca225115a8796e6d63ffc32856043e25886 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 22 Mar 2013 13:54:44 +0000 Subject: [cmdline] Add ability to perform a warm reboot Signed-off-by: Michael Brown --- src/interface/efi/efi_reboot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/interface/efi') diff --git a/src/interface/efi/efi_reboot.c b/src/interface/efi/efi_reboot.c index 1ecccc460..bfee36aa3 100644 --- a/src/interface/efi/efi_reboot.c +++ b/src/interface/efi/efi_reboot.c @@ -32,12 +32,13 @@ FILE_LICENCE ( GPL2_OR_LATER ); /** * Reboot system * + * @v warm Perform a warm reboot */ -static void efi_reboot ( void ) { +static void efi_reboot ( int warm ) { EFI_RUNTIME_SERVICES *rs = efi_systab->RuntimeServices; /* Use runtime services to reset system */ - rs->ResetSystem ( EfiResetCold, 0, 0, NULL ); + rs->ResetSystem ( ( warm ? EfiResetWarm : EfiResetCold ), 0, 0, NULL ); } PROVIDE_REBOOT ( efi, reboot, efi_reboot ); -- cgit v1.2.3-55-g7522