]> git.ipfire.org Git - thirdparty/grub.git/commit
Fix exit to EFI firmware
authorMark Salter <msalter@redhat.com>
Fri, 15 Aug 2014 16:22:43 +0000 (12:22 -0400)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Fri, 12 Jun 2015 10:08:36 +0000 (13:08 +0300)
commitc945ca75c3b2b900040b905323b1226cb60a1166
treec61ec31e1d5ded833dbc7ea4a9285674523b3c35
parentf4b1b48a837a034748a103adc7e9fd719a39ce42
Fix exit to EFI firmware

The current code for EFI grub_exit() calls grub_efi_fini() before
returning to firmware. In the case of ARM, this leaves a timer
event running which could lead to a firmware crash. This patch
changes this so that grub_machine_fini() is called with a NORETURN
flag. This allows machine-specific shutdown to happen as well
as the shutdown done by grub_efi_fini().

Signed-off-by: Mark Salter <msalter@redhat.com>
grub-core/kern/arm/efi/init.c
grub-core/kern/efi/efi.c