riscv: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO
authorZong Li <zong.li@sifive.com>
Mon, 31 Aug 2020 07:33:49 +0000 (15:33 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 16 Sep 2020 01:46:07 +0000 (18:46 -0700)
AT_VECTOR_SIZE_ARCH should be defined with the maximum number of
NEW_AUX_ENT entries that ARCH_DLINFO can contain, but it wasn't defined
for RISC-V at all even though ARCH_DLINFO will contain one NEW_AUX_ENT
for the VDSO address.

Signed-off-by: Zong Li <zong.li@sifive.com>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/uapi/asm/auxvec.h

index d86cb17bbabe628dee4ac2759493838f4e2a0c44..22e0ae8884061296dd4f72aa29804dcde8c955eb 100644 (file)
@@ -10,4 +10,7 @@
 /* vDSO location */
 #define AT_SYSINFO_EHDR 33
 
+/* entries in ARCH_DLINFO */
+#define AT_VECTOR_SIZE_ARCH    1
+
 #endif /* _UAPI_ASM_RISCV_AUXVEC_H */