Someone on #flashrom on IRC brought up a good point about the existing 1.0
alignment not being very compatible with existing RISC platforms:
<minipli> [...] all members could be alignend simply by reordering some of them
<minipli> and the size of the struct wouldn't change
<minipli> e.g. use the following order: fmap_signature, fmap_ver_major,
fmap_ver_minor, fmap_nareas, fmap_size, fmap_base, fmap_name
<minipli> and for the inner struct I would suggest to use uint32_t for the
area_flags member, so the odd elements of the field will be alligned, too
Check into this and update parsers (flashmap reference code and mosys) to deal
with it.
Original issue reported on code.google.com by
dhend...@google.comon 16 Nov 2010 at 10:11