Sure. On RISC machines, cmpxchg is easy to implement with the
load-locked/store-conditional instruction pair (the notion and use of
compare and exchange predates Intel's cmpxchg instruction). Richard
Henderson has already implemented a generic cmpxchg routine in the kernel
for Alpha and Intel, and it should be easy for someone to add one for the
Sparc64 and other modern processors that need it.
What I'm saying is that implementing a generic cmpxchg for _80386_ is not
justified at this time.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/