Re: [PATCH] of/fdt: add kernel command line option for dtb_compat string

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dirk Brandewie
Date: Monday, December 6, 2010 - 8:08 pm

On 12/06/2010 01:50 PM, Stephen Neuendorffer wrote:

No each blob starts on a STRUCT_ALIGNMENT boundary.  If the blob does not have 
the correct alignment the code that GCC generates to reference into the 
structure breaks.

part of why I ask
The padding between blobs is added in the assembly wrapper (zero fill) 
of_get_flat_dt_root() assumes the blob pointer (initial_boot_params) is the head 
of the blob and only skips OF_DT_NOP (0x4).  If we always hand in the pointer to 
the head of the blob the rest of fdt.c should be happy with it.

Originally I used ALIGN but needed to cast the result of ALIGN blob to get rid 
of a compiler warning Grant suggested PTR_ALIGN which does the cast for you.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RE: [PATCH] of/fdt: add kernel command line option for dtb ..., Stephen Neuendorffer, (Mon Dec 6, 11:37 am)
RE: [PATCH] of/fdt: add kernel command line option for dtb ..., Stephen Neuendorffer, (Mon Dec 6, 2:50 pm)
Re: [PATCH] of/fdt: add kernel command line option for dtb ..., Dirk Brandewie, (Mon Dec 6, 8:08 pm)