linux/arch/riscv/include/asm
Andy Chiu 50724efcb3
riscv: hwcap: change ELF_HWCAP to a function
Using a function is flexible to represent ELF_HWCAP. So the kernel may
encode hwcap reflecting supported hardware features just at the moment of
the start of each program.

This will be helpful when we introduce prctl/sysctl interface to control
per-process availability of Vector extension in following patches.
Programs started with V disabled should see V masked off in theirs
ELF_HWCAP.

Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230605110724.21391-21-andy.chiu@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2023-06-08 07:16:52 -07:00
..
vdso RISC-V: Add hwprobe vDSO function and data 2023-04-18 15:48:18 -07:00
alternative-macros.h RISC-V: alternatives: Support patching multiple insns in assembly 2023-03-14 21:26:01 -07:00
alternative.h RISC-V: hwprobe: Remove __init on probe_vendor_features() 2023-04-25 21:58:42 -07:00
asm-extable.h
asm-offsets.h
asm-prototypes.h riscv: entry: Convert to generic entry 2023-03-23 08:47:00 -07:00
asm.h riscv: entry: Consolidate general regs saving/restoring 2023-03-23 08:47:03 -07:00
assembler.h RISC-V: Add arch functions to support hibernation/suspend-to-disk 2023-04-29 11:25:13 -07:00
atomic.h locking/arch: Rename all internal __xchg() names to __arch_xchg() 2023-04-29 09:08:44 +02:00
barrier.h
bitops.h
bug.h
cache.h
cacheflush.h RISC-V: Add Zicboz detection and block size parsing 2023-03-14 21:26:04 -07:00
cacheinfo.h
clint.h
clocksource.h
cmpxchg.h locking/arch: Rename all internal __xchg() names to __arch_xchg() 2023-04-29 09:08:44 +02:00
compat.h
cpu_ops_sbi.h
cpu_ops.h
cpufeature.h RISC-V: hwprobe: Support probing of misaligned access performance 2023-04-18 15:48:16 -07:00
cpuidle.h
csr.h riscv: Add new csr defines related to vector extension 2023-06-08 07:16:37 -07:00
current.h
delay.h
efi.h efi: Discover BTI support in runtime services regions 2023-02-04 09:19:02 +01:00
elf.h riscv: hwcap: change ELF_HWCAP to a function 2023-06-08 07:16:52 -07:00
entry-common.h riscv: entry: Convert to generic entry 2023-03-23 08:47:00 -07:00
errata_list.h Merge patch series "Remove toolchain dependencies for Zicbom" 2023-02-14 21:33:27 -08:00
extable.h
fence.h
fixmap.h riscv: Move early dtb mapping into the fixmap region 2023-04-13 18:14:26 -07:00
ftrace.h RISC-V: Don't check text_mutex during stop_machine 2023-03-09 14:58:51 -08:00
futex.h
gdb_xml.h
gpr-num.h
hugetlb.h riscv: mm: support Svnapot in hugetlb page 2023-03-07 19:39:16 -08:00
hwcap.h riscv: hwcap: change ELF_HWCAP to a function 2023-06-08 07:16:52 -07:00
hwprobe.h RISC-V: hwprobe: Support probing of misaligned access performance 2023-04-18 15:48:16 -07:00
image.h
insn-def.h RISC-V: Use Zicboz in clear_page when available 2023-03-14 21:26:06 -07:00
insn.h riscv: Allocate user's vector context in the first-use trap 2023-06-08 07:16:44 -07:00
io.h
irq_work.h
irq.h irqchip/riscv-intc: Allow drivers to directly discover INTC hwnode 2023-04-08 11:26:24 +01:00
irqflags.h
jump_label.h riscv: jump_label: Fixup unaligned arch_static_branch function 2023-02-21 17:21:16 -08:00
kasan.h
Kbuild
kdebug.h
kexec.h
kfence.h
kgdb.h
kprobes.h
kvm_aia.h RISC-V: KVM: Virtualize per-HART AIA CSRs 2023-04-21 18:10:27 +05:30
kvm_host.h riscv: KVM: Add vector lazy save/restore support 2023-06-08 07:16:51 -07:00
kvm_types.h
kvm_vcpu_fp.h
kvm_vcpu_insn.h
kvm_vcpu_pmu.h RISC-V: KVM: Support firmware events 2023-02-07 20:36:06 +05:30
kvm_vcpu_sbi.h RISC-V: KVM: Add ONE_REG interface to enable/disable SBI extensions 2023-04-21 17:38:44 +05:30
kvm_vcpu_timer.h
kvm_vcpu_vector.h riscv: KVM: Add vector lazy save/restore support 2023-06-08 07:16:51 -07:00
linkage.h
mmio.h
mmiowb.h
mmu_context.h
mmu.h Revert "riscv: mm: notify remote harts about mmu cache updates" 2023-03-09 15:22:01 -08:00
mmzone.h
module.h riscv: module: move find_section to module.h 2023-01-31 23:29:39 -08:00
module.lds.h
numa.h
page.h Merge patch series "riscv: Use PUD/P4D/PGD pages for the linear mapping" 2023-04-18 20:43:07 -07:00
patch.h RISC-V: Don't check text_mutex during stop_machine 2023-03-09 14:58:51 -08:00
pci.h
perf_event.h
pgalloc.h
pgtable-32.h
pgtable-64.h riscv: mm: modify pte format for Svnapot 2023-03-07 19:39:15 -08:00
pgtable-bits.h riscv/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE 2023-02-02 22:33:09 -08:00
pgtable.h RISC-V Patches for the 6.4 Merge Window, Part 1 2023-04-28 16:55:39 -07:00
probes.h
processor.h riscv: signal: Report signal frame size to userspace via auxv 2023-06-08 07:16:48 -07:00
ptdump.h
ptrace.h riscv: entry: Convert to generic entry 2023-03-23 08:47:00 -07:00
sbi.h RISC-V: Align SBI probe implementation with spec 2023-04-29 13:04:50 -07:00
seccomp.h
sections.h
semihost.h riscv: Implement semihost.h for earlycon semihost driver 2023-01-19 14:58:19 +01:00
set_memory.h riscv: Prepare EFI header for relocatable kernels 2023-04-19 07:46:28 -07:00
signal32.h
signal.h RISC-V: Fix do_notify_resume / do_work_pending prototype 2023-01-24 22:13:15 -08:00
smp.h RISC-V: Allow marking IPIs as suitable for remote FENCEs 2023-04-08 11:26:24 +01:00
soc.h
sparsemem.h
stackprotector.h
stacktrace.h riscv: entry: Convert to generic entry 2023-03-23 08:47:00 -07:00
string.h RISC-V: add infrastructure to allow different str* implementations 2023-01-31 11:43:23 -08:00
suspend.h RISC-V: Add arch functions to support hibernation/suspend-to-disk 2023-04-29 11:25:13 -07:00
switch_to.h riscv: Add task switch support for vector 2023-06-08 07:16:43 -07:00
syscall.h Merge patch series "RISC-V Hardware Probing User Interface" 2023-04-18 19:49:51 -07:00
thread_info.h riscv: Add task switch support for vector 2023-06-08 07:16:43 -07:00
timex.h
tlb.h
tlbflush.h riscv: mm: Fix incorrect ASID argument when flushing TLB 2023-03-21 15:55:19 -07:00
topology.h Merge patch series "Introduce 64b relocatable kernel" 2023-04-19 07:47:45 -07:00
uaccess.h riscv: uaccess: fix type of 0 variable on error in get_user() 2023-01-05 12:30:41 -08:00
unistd.h
uprobes.h
vdso.h riscv: alternative: patch alternatives in the vDSO 2023-01-31 23:29:42 -08:00
vector.h riscv: Allocate user's vector context in the first-use trap 2023-06-08 07:16:44 -07:00
vendorid_list.h
vermagic.h
vmalloc.h riscv: mm: support Svnapot in huge vmap 2023-03-07 19:39:17 -08:00
word-at-a-time.h
xip_fixup.h