Re: x86 setup code rewrite in C - revised
From: Andi Kleen
Date: Thu Jul 12 2007 - 15:38:27 EST
On Thu, Jul 12, 2007 at 10:24:48AM -0700, Linus Torvalds wrote:
>
>
> On Wed, 11 Jul 2007, H. Peter Anvin wrote:
> >
> > This patch set replaces the x86 setup code, which is currently all in
> > assembly, with a version written in C, using the ".code16gcc" feature
> > of binutils (which has been present since at least 2001.)
> >
> > 76 files changed, 4606 insertions(+), 5209 deletions(-)
>
> I can't really argue against this on any sane grounds - not only is it
> removing more lines than it adds, but moving from mostly unreadable
> assembly to C seems a good idea.
The only thing questionable is that .code16gcc is arguably quite
an abuse of gcc. I even checked with some gcc developers
and they weren't too happy about it. e.g. it's not regression
tested at all so we would be basically on our own with it.
But yes the code looks good.
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/