Re: [PATCH -next v13 14/19] riscv: signal: Report signal frame size to userspace via auxv

Conor Dooley
2023-01-26T23:19:41Z

[-- Attachment #1.1: Type: text/plain, Size: 770 bytes --]

On Wed, Jan 25, 2023 at 02:20:51PM +0000, Andy Chiu wrote:
> diff --git a/arch/riscv/include/asm/processor.h b/arch/riscv/include/asm/processor.h
> index 44d2eb381ca6..4f36c553605e 100644
> --- a/arch/riscv/include/asm/processor.h
> +++ b/arch/riscv/include/asm/processor.h
> @@ -7,6 +7,7 @@
> #define _ASM_RISCV_PROCESSOR_H
>
> #include <linux/const.h>
> +#include <linux/cache.h>

What have I missed that is the reason for adding this header?

> #include <vdso/processor.h>
>
> @@ -203,8 +205,10 @@ static size_t cal_rt_frame_size(void)
>
> frame_size = sizeof(*frame);
>
> - if (has_vector() && vstate_query(task_pt_regs(current)))
> - total_context_size += rvv_sc_size;

Usual naming comment here about rvv.

Thanks,
Conor.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]