grub/grub-core/lib/efi
Alexander Graf e224ee31c0 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>
2020-09-21 12:02:37 -04:00
..
datetime.c * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE. 2011-04-20 01:32:21 +02:00
halt.c ARM 64 port by Leif Lindholm 2013-11-16 20:52:55 +01:00
relocator.c * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region): 2013-04-20 13:39:04 +02:00