On Mon, Mar 28, 2022 at 05:22:34PM +1100, Daniel Axtens wrote: > From: Patrick Steinhardt <[email protected]> > > The function `add_memory_regions ()` is currently only called on system > initialization to allocate a fixed amount of pages. As such, it didn't > need to return any errors: in case it failed, we cannot proceed anyway. > This will change with the upcoming support for requesting more memory > from the firmware at runtime, where it doesn't make sense anymore to > fail hard. > > Refactor the function to return an error to prepare for this. Note that > this does not change the behaviour when initializing the memory system > because `grub_efi_mm_init ()` knows to call `grub_fatal ()` in case > `grub_efi_mm_add_regions ()` returns an error. > > Signed-off-by: Patrick Steinhardt <[email protected]> > [dja: clarify error messages] > Signed-off-by: Daniel Axtens <[email protected]>
Reviewed-by: Daniel Kiper <[email protected]> Daniel _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
