Skip to content

Commit

Permalink
riscv: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO
Browse files Browse the repository at this point in the history
[ Upstream commit b5fca7c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
zongbox authored and gregkh committed Nov 5, 2020
1 parent 7762afa commit 2eab702
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/riscv/include/uapi/asm/auxvec.h
Expand Up @@ -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 */

0 comments on commit 2eab702

Please sign in to comment.