On 24.11.2023 11:30, Oleksii Kurochko wrote: > Signed-off-by: Oleksii Kurochko <oleksii.kuroc...@gmail.com> > --- > Changes in V2: > - update the comment at the top of the header. > - change xen/lib.h to xen/bug.h. > - sort inclusion of headers properly. > --- > xen/arch/riscv/include/asm/cmpxchg.h | 379 +++++++++++++++++++++++++++ > 1 file changed, 379 insertions(+) > create mode 100644 xen/arch/riscv/include/asm/cmpxchg.h > > diff --git a/xen/arch/riscv/include/asm/cmpxchg.h > b/xen/arch/riscv/include/asm/cmpxchg.h > new file mode 100644 > index 0000000000..c535bc9660 > --- /dev/null > +++ b/xen/arch/riscv/include/asm/cmpxchg.h > @@ -0,0 +1,379 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Taken and modified from Linux.
Depending on how heavily this file was modified, further adjustments may or may not be advisable. Can the description here please be non-empty to cover how close to the original the result is, plus also what version or commit you started from? Jan