svn commit: r202889 - head/sys/kern

Marcel Moolenaar xcllnt at mac.com
Tue Jan 26 18:39:59 UTC 2010


On Jan 26, 2010, at 3:39 AM, Attilio Rao wrote:
>>> 
>>> Does this affect the various #ifdef's for handling the third argument to
>>> cpu_switch()?  E.g. does 4BSD need to spin if td_lock is &blocked_lock?
>>> 
> 
> I think that ia64 is broken on that regard because it does use simple
> operation while it should use correct atomic and memory barriers
> (CC'ed marcel@ for that).

Ok, so cpu_switch() handles the 3rd argument (the mutex) only
when SCHED_ULE and SMP are defined, even on i386. Maybe it's
just me, but if SCHED_4BSD now also uses the 3rd argument then
all implementations of cpu_switch() are broken, right?

Maybe what is in order right now is a description (using pseudo
code if you like) of what exactly needs to happen with the 3rd
argument, when and how (i.e. what must be atomic and what does
not have to be atomic).

I can deal with ia64 and powerpc once I know for certain what
exactly needs to happen, because it seems to me that I can't
really look at the i386 implementation and infer what needs to
happen.

Thanks,

-- 
Marcel Moolenaar
xcllnt at mac.com





More information about the svn-src-all mailing list