summaryrefslogtreecommitdiff
path: root/repo/system/musl/0001-riscv64-define-ELF_NFPREG.patch
blob: b2f0a0f33803dc1fdc385dab32ffa4d21160185e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From e5d2823631bbfebacf48e1a34ed28f28d7cb2570 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 11 Jan 2021 09:40:33 -0800
Subject: [PATCH] riscv64: define ELF_NFPREG

ELF_NFPREG is used by some userspace applications like gdb
---
 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