Skip to contentSkip to conversation

riscv: Set 5.4 as minimum kernel version for riscv32

PATCH In review Khem Raj 3 participants 4 messages Dec 15, 2021 – Dec 16, 2021 RISC-V

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 riscv: Set 5.4 as minimum kernel version for riscv32

5.4 is first stable API as far as rv32 is concerned see [1]

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=7a55dd3fb6d2c307a002a16776be84310b9c8989

Cc Palmer Dabbelt <[email protected]>
Cc Alistair Francis <[email protected]>
Cc Bin Meng <[email protected]>
---
 linux-user/riscv/target_syscall.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
linux-user/riscv/target_syscall.h +2 -1
index dc597c8972..9b13161324 100644
@@ -45,10 +45,11 @@ struct target_pt_regs {
 
 #ifdef TARGET_RISCV32
 #define UNAME_MACHINE "riscv32"
+#define UNAME_MINIMUM_RELEASE "5.4.0"
 #else
 #define UNAME_MACHINE "riscv64"
-#endif
 #define UNAME_MINIMUM_RELEASE "4.15.0"
+#endif
 
 #define TARGET_MINSIGSTKSZ 2048
 #define TARGET_MCL_CURRENT 1
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · Khem Raj

5.4 is first stable API as far as rv32 is concerned see [1]

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=7a55dd3fb6d2c307a002a16776be84310b9c8989

Cc Palmer Dabbelt <[email protected]>
Cc Alistair Francis <[email protected]>
Cc Bin Meng <[email protected]>
---
 linux-user/riscv/target_syscall.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
linux-user/riscv/target_syscall.h +0 -0
index dc597c8972..9b13161324 100644
@@ -45,10 +45,11 @@ struct target_pt_regs {
 
 #ifdef TARGET_RISCV32

linux-user/riscv/target_syscall.h struct target_pt_regs { · line 55

Quoted 10 lines
linux-user/riscv/target_syscall.h +2 -1
 #define UNAME_MACHINE "riscv32"
+#define UNAME_MINIMUM_RELEASE "5.4.0"
 #else
 #define UNAME_MACHINE "riscv64"
-#endif
 #define UNAME_MINIMUM_RELEASE "4.15.0"
+#endif
 
 #define TARGET_MINSIGSTKSZ 2048
 #define TARGET_MCL_CURRENT 1

Thanks!

#2 lore raw
Quoted 10 lines · Palmer Dabbelt
Quoted 9 lines · Khem Raj

5.4 is first stable API as far as rv32 is concerned see [1]

[1]
https://sourceware.org/git/?p=glibc.git;a=commit;h=7a55dd3fb6d2c307a002a16776be84310b9c8989

Cc Palmer Dabbelt <[email protected]>
Cc Alistair Francis <[email protected]>
Cc Bin Meng <[email protected]>

Thanks for the patch!

Can you please send the patch to [email protected] as well?

Alistair

Quoted 26 lines
Quoted 12 lines

---
 linux-user/riscv/target_syscall.h | 3 ++-

 1 file changed, 2 insertions(+), 1 deletion(-)
linux- renamed from linux-user/riscv/target_syscall.h +0 -0

user/riscv/target_syscall.h
index dc597c8972..9b13161324 100644

linux-user/riscv/target_syscall.h +0 -0
@@ -45,10 +45,11 @@ struct target_pt_regs {
 
  #ifdef TARGET_RISCV32

linux-user/riscv/target_syscall.h struct target_pt_regs { · line 55

Quoted 10 lines
linux-user/riscv/target_syscall.h +2 -1
  #define UNAME_MACHINE "riscv32"
+#define UNAME_MINIMUM_RELEASE "5.4.0"
  #else
  #define UNAME_MACHINE "riscv64"
-#endif
  #define UNAME_MINIMUM_RELEASE "4.15.0"
+#endif
 
  #define TARGET_MINSIGSTKSZ 2048
  #define TARGET_MCL_CURRENT 1

Thanks!

author
#3 lore raw
Quoted 8 lines · Alistair Francis
Quoted 6 lines · Palmer Dabbelt
Quoted 5 lines · Khem Raj

5.4 is first stable API as far as rv32 is concerned see [1]

[1]
https://sourceware.org/git/?p=glibc.git;a=commit;h=7a55dd3fb6d2c307a002a16776be84310b9c8989

Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
Cc Palmer Dabbelt <[email protected]>
Cc Alistair Francis <[email protected]>
Cc Bin Meng <[email protected]>

Thanks for the patch!

Can you please send the patch to [email protected] as well?

Yeah I missed that. Done now.

Quoted 29 lines

Alistair

Quoted 26 lines
Quoted 12 lines
---
 linux-user/riscv/target_syscall.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
linux- renamed from linux-user/riscv/target_syscall.h +0 -0

user/riscv/target_syscall.h
index dc597c8972..9b13161324 100644

linux-user/riscv/target_syscall.h +0 -0
@@ -45,10 +45,11 @@ struct target_pt_regs {
 
 #ifdef TARGET_RISCV32

linux-user/riscv/target_syscall.h struct target_pt_regs { · line 55

Quoted 10 lines
linux-user/riscv/target_syscall.h +2 -1
 #define UNAME_MACHINE "riscv32"
+#define UNAME_MINIMUM_RELEASE "5.4.0"
 #else
 #define UNAME_MACHINE "riscv64"
-#endif
 #define UNAME_MINIMUM_RELEASE "4.15.0"
+#endif
 
 #define TARGET_MINSIGSTKSZ 2048
 #define TARGET_MCL_CURRENT 1

Thanks!