Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: the bouyer-xeni386 branch




To: port-i386%netbsd.org@localhost, port-xen%netbsd.org@localhost

Subject: Re: the bouyer-xeni386 branch

From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>

Date: Thu, 10 Jan 2008 22:00:25 +0100


On Thu, Jan 10, 2008 at 08:48:24PM +0000, David Laight wrote:
> On Wed, Jan 09, 2008 at 08:34:12PM +0100, Manuel Bouyer wrote:
> > Hi,
> > I'm almost done merging xen support back in arch/i386, in the same way it
> > was done for amd64 Xen supoort (there's much, much less duplicate code this
> > way). There's only spl.S and vector.S remaining, which I hope to handle this
> > evening, as well as reworking a bit the xen/i386 config files to match amd64
> > (especially, introduce a arch/xen/include/i386 directory and move some files
> > here).
> 
> When looking at the amd64 locore.S and vector.S I found that they were
> largely unreadably because they seemed to contain the amd64 and xen
> implementations of certain functions that were 98% different.
> I actually considered splitting out some of the xen code into a different
> file!

AFAIK only start and trap02 are completely different (and of course the
interrupt stubs). Others functions share a lot of code. I think, out of
locore.S and vector.S only start and the interrupt stubs could be
moved in a xen file.
One problem with this is that, when the native files are changed,
the xen files are occasionally forgottten. If all the code is in the same
file, this is less likely to happen.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--



Follow-Ups:

Re: the bouyer-xeni386 branch
From: Perry E. Metzger


References:

the bouyer-xeni386 branch
From: Manuel Bouyer

Re: the bouyer-xeni386 branch
From: David Laight




Prev by Date: Re: the bouyer-xeni386 branch

Next by Date: Re: the bouyer-xeni386 branch

Previous by Thread: Re: the bouyer-xeni386 branch

Next by Thread: Re: the bouyer-xeni386 branch

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index