From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: Re: [patch rfc 1/3] xen arch header rework. Date: Wed, 11 Oct 2006 13:39:13 +0200 Message-ID: <452CD7E1.6000907@suse.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com, Jan Beulich List-Id: xen-devel@lists.xenproject.org Hi, > A generic script that can read in public header files, parse according to > the rules of one architectural ABI and spit out header files matching the > rules of another ABI is definitely a good thing. If it can also generate the > offset/size statistics for any given ABI then that's even better. Basically, > it would be good to centralise all this scripting intelligence in one place, > rather than scatter hacks all over the place. This script looks like a > plausible starting point. It's intentionally not generic because I'll intend to translate only stuff which needs translation and not pipe everything through the script. One can try to move these bits (i.e. the @structs array) to some configuration file, I'm not sure that is worth the trouble though. I can fit it into the xen/include/public subtree so the generated header files are available to everyone and not just private to libxc if that is the way we'll plan to go. cheers, Gerd -- Gerd Hoffmann http://www.suse.de/~kraxel/julika-dora.jpeg