mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-30 16:35:37 +00:00
efi_loader: implement EFI_RESET_SHUTDOWN at boot time
Allow an EFI application to shut down the system. If EFI_RESET_SHUTDOWN is issued call do_poweroff(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
1c32bb1010
commit
e706ed7f5b
1 changed files with 3 additions and 1 deletions
|
@ -141,7 +141,9 @@ static void EFIAPI efi_reset_system_boottime(
|
||||||
do_reset(NULL, 0, 0, NULL);
|
do_reset(NULL, 0, 0, NULL);
|
||||||
break;
|
break;
|
||||||
case EFI_RESET_SHUTDOWN:
|
case EFI_RESET_SHUTDOWN:
|
||||||
/* We don't have anything to map this to */
|
#ifdef CONFIG_CMD_POWEROFF
|
||||||
|
do_poweroff(NULL, 0, 0, NULL);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue