[ECOS] Debugging pc platform

Andrew Lunn andrew@lunn.ch
Thu Mar 2 13:44:00 GMT 2006


On Thu, Mar 02, 2006 at 01:38:36PM +0000, David Fernandez wrote:
> 
> 	Andrew,
> 
> 	Looking further into pcmb_smp.c, seems that there is a real mess with
> the ordinal cpu count numbers and the cpu ids.
> 
> 	According to Intel SMP specification, what is regarded in pcmb_smp.c as
> cpu id, is really the apic id, that should be unique but not need to be
> consecutive. As most commercial boards could have them consecutive, its
> not likely to be aware of the problem, but looking into the code, for
> example the cpu flags are read and stored according to the cpu id, but
> then are checked according to the cpu ordinal number; and there are
> several other things like that.
> 
> 	I would like to know what do you think is the best way to change that;
> we could have another table indexed by ordinal cpu number giving the cpu
> ids, or we could just index everything by ordinal cpu number.
> 
> 	Anyway, seems that all the code there should be revised... So tell me
> if it is going to be some high priority thing in there, and I wait for
> it, or if you think it's okay for me to do it and submit the changes...

I beleave Nick did the SMP support. He can give you the definitive
answer. I don't know of anybody else working on SMP at the moment, so
i think it would be best if you attempted to fix the problem and
submit a patch.

        Andrew


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list