[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <df760aa2-6446-f8b2-b0a4-0102a5ac138d@roeck-us.net>
Date: Thu, 8 Apr 2021 13:22:02 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: Frank Rowand <frowand.list@...il.com>,
Rob Herring <robh+dt@...nel.org>
Cc: Pantelis Antoniou <pantelis.antoniou@...sulko.com>,
devicetree@...r.kernel.org,
Geert Uytterhoeven <geert+renesas@...der.be>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 1/1] of: unittest: overlay: ensure proper alignment of
copied FDT
On 4/8/21 1:06 PM, Frank Rowand wrote:
>>> +#define FDT_ALIGN_SIZE 8
>>> +
>>
>> Use existing define ? Or was that local in libfdt ?
>
> I don't see a define in libfdt. If anyone finds one,
> I'll switch to it.
>
Turns out that was hardcoded in scripts/dtc/libfdt/fdt.c
+ /* The device tree must be at an 8-byte aligned address */
+ if ((uintptr_t)fdt & 7)
+ return -FDT_ERR_ALIGNMENT;
+
Guenter
Powered by blists - more mailing lists