Re: [PATCH 00/18] Make common x86 arch area for i386 and x86_64 - Take 2

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Wednesday, March 14, 2007 - 12:59 pm

* Linus Torvalds <torvalds@linux-foundation.org> wrote:


ok, having a single bi-arch final tree is indeed intriquing and i didnt 
realize that you were suggesting that. (I had the impression that 
arch/x86/ was more of a 'common library' thing, not a target 
architecture. What felt weird to me was having 3 separate hierarchies - 
but as long as it's just a temporary state it's OK.)


the x86_64 and i386 trees have diverged quite a bit though, so this will 
be a major logistical undertaking. And with Andi opposed to 
fundamentally it it also lacks a bit of manpower i guess :-/


yeah. But this really scares the sh*t out of me. I already tried to 
unify some of the most fragile lowlevel bits recently: for example the 
SMP bootup, TSC sync and APIC initialization sequences were totally 
different on x86 and x86_64. And those kind of random deviations have 
spread all around the tree. But ... my experience has been pretty 
positive: touching both codebases at once tends to dust off old code and 
tends to fix more bugs. And in the process of doing that we broke 
Andrew's laptop only half a dozen times! ;) But .. in the long run, it's 
alot easier to think about unified code. 32-bit x86 will certainly stay 
with us for at least 10-20 years, and the best model for maintainance is 
having one codebase.

Another practical complication is that even for modular stuff, sometimes 
x86_64 has the better code, sometimes i386. But ... the more i think 
about it the more i like it. -m32 certainly works fine and does the 
right thing.

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

Messages in current thread:
Re: [PATCH 00/18] Make common x86 arch area for i386 and x ..., Jeremy Fitzhardinge, (Wed Mar 14, 11:57 am)
Re: [PATCH 00/18] Make common x86 arch area for i386 and x ..., Ingo Molnar, (Wed Mar 14, 12:59 pm)
Re: [PATCH 00/18] Make common x86 arch area for i386 and x ..., Christoph Lameter, (Thu Mar 15, 9:28 pm)
Re: [PATCH 00/18] Make common x86 arch area for i386 and x ..., Christoph Lameter, (Fri Mar 16, 1:15 pm)
Re: [PATCH 00/18] Make common x86 arch area for i386 and x ..., Christoph Lameter, (Fri Mar 16, 1:48 pm)
Re: [PATCH 00/18] Make common x86 arch area for i386 and x ..., Christoph Lameter, (Fri Mar 16, 1:52 pm)
Re: [PATCH 00/18] Make common x86 arch area for i386 and x ..., Christoph Lameter, (Fri Mar 16, 1:56 pm)
Re: [PATCH 00/18] Make common x86 arch area for i386 and x ..., Christoph Lameter, (Fri Mar 16, 1:59 pm)
Re: [PATCH 00/18] Make common x86 arch area for i386 and x ..., Christoph Lameter, (Fri Mar 16, 2:02 pm)