Linux MIPS Architecture development
 help / color / mirror / Atom feed
* MIPS_ATOMIC_SET in sys_sysmips()
@ 2000-12-19  2:03 Jun Sun
  2000-12-19 13:25 ` Maciej W. Rozycki
  0 siblings, 1 reply; 6+ messages in thread
From: Jun Sun @ 2000-12-19  2:03 UTC (permalink / raw)
  To: linux-mips


It looks like sometime after test5 the MIPS_ATOMIC_SET case in sys_sysmips()
function in the CVS tree is changed.  The new code now uses ll/sc instructions
and handles syscall trace, etc.. 

This change does not make sense to me.  The userland typically uses
MIPS_ATOMIC_SET when ll/sc instructions are not available.  But the new code
itself uses ll/sc, which pretty much forfeit the purpose.  Or do I miss
something else?

What do we offer to machines without ll/sc?

BTW, what is the wrong with previous code?  I understand it may be broken in
SMP case, but I think that is fixable.  Comments?


Jun

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-12-20 13:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-19  2:03 MIPS_ATOMIC_SET in sys_sysmips() Jun Sun
2000-12-19 13:25 ` Maciej W. Rozycki
2000-12-19 17:03   ` Harald Koerfgen
2000-12-19 18:03     ` Maciej W. Rozycki
2000-12-19 18:38   ` Jun Sun
2000-12-20 13:24     ` Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox