[RFC][PATCH] combining header files

Alan Modra amodra at bigpond.net.au
Wed Mar 9 12:19:29 EST 2005


On Wed, Mar 09, 2005 at 12:03:43PM +1100, Stephen Rothwell wrote:
> I would just like to start a discussion about consolidating (some of) the
> ppc and ppc64 header files.

Marvellous!  In case it isn't completely obvious, you can often share
structure definitions between ppc32 and ppc64 by judicious selection of
types.  eg.

struct stays_the_same {
  long long some_64bit_var;
  int some_32bit_var;
}

struct bigger_in_64bit {
  long var_sized_by_arch;
}

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Linuxppc64-dev mailing list