[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Device tree support for x86 on Linux
From: |
Daniel Kiper |
Subject: |
Re: Device tree support for x86 on Linux |
Date: |
Mon, 2 Aug 2021 17:04:41 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Mon, Aug 02, 2021 at 01:18:21PM +0000, Mislav Stublić wrote:
> Hi Daniel,
>
> Sorry, sent an unfinished mail by mistake.
No worries.
> Regarding reusing existing code, there is grub-core/loader/efi/fdt.c
> which is mentioned in git log as not really platform specific (although
> it was part of arm64, and does follow EBBR to a degree), but i'm not
> sure if i can really use this for x86. grub-core/loader/efi/ftd.c uses
> grub_efi_allocate_pages_real which, if i understand correctly, calls
> UEFI to allocate memory in EfiACPIReclaimMemory. Not sure if this would
> work for x86 (regarding ACPI and its handling in Linux) and also it
> doesn't use grub_relocator_alloc_chunk_align as you mention.
Feel free to change anything what you need. Of course your changes
cannot break existing code. If you think a design document/email/...
will be better posting before the patches feel free to do that too.
Daniel