0026-kern-coreboot-mmap-Map-to-reserved.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From d675307bfcac2f9e05ed119c5b5af3de48e56fb9 Mon Sep 17 00:00:00 2001
  2. From: Paul Menzel <pmenzel@molgen.mpg.de>
  3. Date: Mon, 17 May 2021 10:24:36 +0200
  4. Subject: [PATCH] kern/coreboot/mmap: Map to reserved
  5. https://git.savannah.gnu.org/cgit/grub.git/commit/?id=6de9ee86bf9ae50967413e6a73b5dfd13e5ffb50
  6. Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
  7. ---
  8. grub-core/kern/coreboot/mmap.c | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/grub-core/kern/coreboot/mmap.c b/grub-core/kern/coreboot/mmap.c
  11. index caf8f7cef..2fc316e8d 100644
  12. --- a/grub-core/kern/coreboot/mmap.c
  13. +++ b/grub-core/kern/coreboot/mmap.c
  14. @@ -59,7 +59,7 @@ iterate_linuxbios_table (grub_linuxbios_table_item_t table_item, void *data)
  15. /* Multiboot mmaps match with the coreboot mmap
  16. definition. Therefore, we can just pass type
  17. through. */
  18. - mem_region->type,
  19. + (mem_region->type >= 13) ? 2 : mem_region->type,
  20. ctx->hook_data))
  21. return 1;
  22. if (start < 0xa0000)
  23. @@ -81,7 +81,7 @@ iterate_linuxbios_table (grub_linuxbios_table_item_t table_item, void *data)
  24. /* Multiboot mmaps match with the coreboot mmap
  25. definition. Therefore, we can just pass type
  26. through. */
  27. - mem_region->type,
  28. + (mem_region->type >= 13) ? 2 : mem_region->type,
  29. ctx->hook_data))
  30. return 1;
  31. }
  32. --
  33. 2.31.1