Re: [PATCH 8/9] RISC-V: User-facing API
From: Christoph Hellwig
Date: Wed Jul 05 2017 - 22:03:53 EST
I'm a bit concerned about these cmpxchg syscalls, and I'd like to
understand if my concerns are justified.
For a new instruction set that starts out in the 201x years we really
should have cmpxchg as a mandatory instruction - if not in the CPU
it should be in the Linux ABI so that we don't have to deal with a mess
where programs will either need an indirection for CPUs that have
cmpxchg capabilities vs those that don't, and we don't need to worry
if given binaries work on all CPUs.
What keeps from from declaring that the RISV-A extension is mandatory
for Linux?