lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 9 Sep 2021 07:17:29 +0100 From: Christoph Hellwig <hch@...radead.org> To: Greentime Hu <greentime.hu@...ive.com> Cc: linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org, aou@...s.berkeley.edu, palmer@...belt.com, paul.walmsley@...ive.com, vincent.chen@...ive.com Subject: Re: [RFC PATCH v8 13/21] riscv: Add support for kernel mode vector On Thu, Sep 09, 2021 at 01:45:25AM +0800, Greentime Hu wrote: > +obj-$(CONFIG_VECTOR) += kernel_mode_vector.o > +riscv-march-cflags-$(CONFIG_ARCH_RV32I) := rv32ima > +riscv-march-cflags-$(CONFIG_ARCH_RV64I) := rv64ima > +riscv-march-cflags-$(CONFIG_RISCV_ISA_C) := $(riscv-march-cflags-y)c > +riscv-march-cflags-$(CONFIG_VECTOR) := $(riscv-march-cflags-y)v > +CFLAGS_kernel_mode_vector.o += -march=$(riscv-march-cflags-y) Do we need a helper in arch/riscv/Makefile to define the vector flags instead of open coding them where used? Also I think the variable name should include vector in it. > +EXPORT_SYMBOL(kernel_rvv_begin); > +EXPORT_SYMBOL(kernel_rvv_end); This needs to be EXPORT_SYMBOL_GPL just like x86 kernel_fpu_begin/end
Powered by blists - more mailing lists