Re: [PATCH linux-evl v3 1/2] riscv: Add EVL core

Philippe Gerum <[email protected]> Thu, 30 Jul 2026 15:27:38 +0200
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
Tobias Schaffner <[email protected]> writes:
> diff --git a/arch/riscv/include/uapi/asm/evl/fptest.h b/arch/riscv/include/uapi/asm/evl/fptest.h
> new file mode 100644
> index 000000000000..1b1f4f0ce373
> --- /dev/null
> +++ b/arch/riscv/include/uapi/asm/evl/fptest.h
> @@ -0,0 +1,16 @@
> +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
> + *
> + * Derived from Xenomai Cobalt, https://xenomai.org/
> + * Copyright (C) 2006 Gilles Chanteperdrix <[email protected]>.
> + */
> +#ifndef _EVL_RISCV_ASM_UAPI_FPTEST_H
> +#define _EVL_RISCV_ASM_UAPI_FPTEST_H
> +
> +#include <linux/types.h>
> +
> +#define evl_riscv_fp  0x1
> +
> +#define evl_set_fpregs(__features, __val)
> +#define evl_check_fpregs(__features, __val, __bad) 0
> +
> +#endif /* !_EVL_RISCV_ASM_UAPI_FPTEST_H */

Gilles did write the fptest bits for x86, arm and arm64 a long time ago
when we were working on xenomai3, which I then picked for implementing
xenomai4/evl. However, the risc-v bits can hardly be seen as an
adaptation of any existing code, although the basic pattern has to be
the same, since this implements an internal API. I believe that you
should copyright it, I don't see this as a work derived from the other
fptest implementations.

-- 
Philippe.