On 08.02.2012 17:55, Matthew Garrett wrote:
+    if (type == GRUB_MEMORY_AVAILABLE)
+      return 0;
+
+    if (target>= addr&&  target<= end)
+      overlap = 1;
+
+    if (target + size>= addr&&  target + size<= end)
+      overlap = 1;
This won't work. IEEE1275 declares only one type of memory range: available. Other ranges aren't declared at all. Also it would make sense to expand this implementation to other non-efi platforms (pc, coreboot, ...).

--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to