grub/grub-core/kern/efi
Alexander Graf 0ba90a7f01 efi: Move grub_reboot() into kernel
The reboot function calls machine_fini() and then reboots the system.
Currently it lives in lib/ which means it gets compiled into the
reboot module which lives on the heap.

In a following patch, I want to free the heap on machine_fini()
though, so we would free the memory that the code is running in. That
obviously breaks with smarter UEFI implementations.

So this patch moves it into the core. That way we ensure that all
code running after machine_fini() in the UEFI case is running from
memory that got allocated (and gets deallocated) by the UEFI core.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2017-09-07 23:29:31 +02:00
..
acpi.c tsc: Use alternative delay sources whenever appropriate. 2015-11-27 11:39:55 +01:00
efi.c efi: Move grub_reboot() into kernel 2017-09-07 23:29:31 +02:00
fdt.c efi: Move fdt helper into own file 2016-11-24 10:09:24 +01:00
init.c Fix fwpath in efi netboot 2016-12-22 22:37:32 +03:00
mm.c efi: change heap allocation type to GRUB_EFI_LOADER_CODE 2017-08-07 19:03:34 +02:00