grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH V3 2/3] Add support for avoiding firmware in relocations


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [PATCH V3 2/3] Add support for avoiding firmware in relocations
Date: Wed, 08 Feb 2012 23:22:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120104 Icedove/8.0

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]