riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headersWhile the GCC and Clang compilers already define __ASSEMBLER__automatically when compiling assembly code, __ASSEMBLY__ is amacro
riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headersWhile the GCC and Clang compilers already define __ASSEMBLER__automatically when compiling assembly code, __ASSEMBLY__ is amacro that only gets defined by the Makefiles in the kernel.This can be very confusing when switching between userspaceand kernelspace coding, or when dealing with uapi headers thatrather should use __ASSEMBLER__ instead. So let's standardize onthe __ASSEMBLER__ macro that is provided by the compilers now.This originally was a completely mechanical patch (done with asimple "sed -i" statement), with some manual fixups duringrebasing of the patch later.Cc: Paul Walmsley <paul.walmsley@sifive.com>Cc: Palmer Dabbelt <palmer@dabbelt.com>Cc: Albert Ou <aou@eecs.berkeley.edu>Cc: Alexandre Ghiti <alex@ghiti.fr>Cc: linux-riscv@lists.infradead.orgSigned-off-by: Thomas Huth <thuth@redhat.com>Link: https://lore.kernel.org/r/20250606070952.498274-3-thuth@redhat.comSigned-off-by: Paul Walmsley <pjw@kernel.org>
show more ...
tools: riscv: Add header file vdso/processor.hBorrow the cpu_relax() definitions from kernel'sarch/riscv/include/asm/vdso/processor.h to tools/ for riscv.Signed-off-by: Haibo Xu <haibo1.xu@intel
tools: riscv: Add header file vdso/processor.hBorrow the cpu_relax() definitions from kernel'sarch/riscv/include/asm/vdso/processor.h to tools/ for riscv.Signed-off-by: Haibo Xu <haibo1.xu@intel.com>Reviewed-by: Andrew Jones <ajones@ventanamicro.com>Signed-off-by: Anup Patel <anup@brainfault.org>