riscv64: define ELF_NFPREG

Submitted by Drew DeVault on Feb. 11, 2021, 5:27 p.m.

Details

Message ID 20210211172753.29515-1-sir@cmpwn.com
State New
Series "riscv64: Define ELF_NFPREG"
Headers show

Commit Message

Drew DeVault Feb. 11, 2021, 5:27 p.m.
---
 arch/riscv64/bits/user.h | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/arch/riscv64/bits/user.h b/arch/riscv64/bits/user.h
index 2da743ea..0d37de0b 100644
--- a/arch/riscv64/bits/user.h
+++ b/arch/riscv64/bits/user.h
@@ -1,5 +1,6 @@ 
 #include <signal.h>
 
 #define ELF_NGREG 32
+#define ELF_NFPREG 33
 typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG];
 typedef union __riscv_mc_fp_state elf_fpregset_t;

Comments

Khem Raj Feb. 11, 2021, 6:09 p.m.
I have already sent a fix for this

https://www.openwall.com/lists/musl/2021/01/11/3

On Thu, Feb 11, 2021 at 10:02 AM Drew DeVault <sir@cmpwn.com> wrote:
>
> ---
>  arch/riscv64/bits/user.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/riscv64/bits/user.h b/arch/riscv64/bits/user.h
> index 2da743ea..0d37de0b 100644
> --- a/arch/riscv64/bits/user.h
> +++ b/arch/riscv64/bits/user.h
> @@ -1,5 +1,6 @@
>  #include <signal.h>
>
>  #define ELF_NGREG 32
> +#define ELF_NFPREG 33
>  typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG];
>  typedef union __riscv_mc_fp_state elf_fpregset_t;
> --
> 2.30.1
>
Drew DeVault Feb. 11, 2021, 6:13 p.m.
Cool.
Rich Felker Feb. 12, 2021, 2:21 a.m.
On Thu, Feb 11, 2021 at 01:13:18PM -0500, Drew DeVault wrote:
> Cool.

Thank you both for reminding me of this.

Rich