riscv: hwcap: make ISA extension ids can be used in asm
authorJisheng Zhang <jszhang@kernel.org>
Sat, 28 Jan 2023 17:28:46 +0000 (01:28 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 1 Feb 2023 07:29:35 +0000 (23:29 -0800)
commitd8a3d8a75206d3dfba64b6d4468b7cf44d4eb4d7
tree4d7db442e520f6afff9644725a56bbf5e58860fa
parent191b27c7c0e8c1a587832f8680132564743af76c
riscv: hwcap: make ISA extension ids can be used in asm

So that ISA extensions can be used in assembly files, convert the
multi-letter RISC-V ISA extension IDs enums to macros.
In order to make them visible, move the #ifndef __ASSEMBLY__ guard
to a later point in the header

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230128172856.3814-4-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/hwcap.h