[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 1/2] efi: Move grub_reboot() into kernel
From: |
Daniel Kiper |
Subject: |
Re: [PATCH v5 1/2] efi: Move grub_reboot() into kernel |
Date: |
Wed, 30 Aug 2017 13:14:48 +0200 |
User-agent: |
Mutt/1.3.28i |
On Tue, Aug 29, 2017 at 09:26:47PM +0200, Alexander Graf wrote:
> 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 <address@hidden>
Reviewed-by: Daniel Kiper <address@hidden>
Daniel
[PATCH v5 1/2] efi: Move grub_reboot() into kernel, Alexander Graf, 2017/08/29
- Re: [PATCH v5 1/2] efi: Move grub_reboot() into kernel,
Daniel Kiper <=
Re: [PATCH v5 0/2] efi: Free memory on exit, Daniel Kiper, 2017/08/29