diff options
| -rw-r--r-- | meta/recipes-core/musl/musl/0001-Update-syscalls-for-r32-rv64-from-kernel-6.4-through.patch | 70 | ||||
| -rw-r--r-- | meta/recipes-core/musl/musl_git.bb | 1 |
2 files changed, 71 insertions, 0 deletions
diff --git a/meta/recipes-core/musl/musl/0001-Update-syscalls-for-r32-rv64-from-kernel-6.4-through.patch b/meta/recipes-core/musl/musl/0001-Update-syscalls-for-r32-rv64-from-kernel-6.4-through.patch new file mode 100644 index 0000000000..78ba903ca6 --- /dev/null +++ b/meta/recipes-core/musl/musl/0001-Update-syscalls-for-r32-rv64-from-kernel-6.4-through.patch | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | From 31dce8e958f5185e7fda653214da12bbc75f244e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 4 Dec 2024 11:16:43 -0800 | ||
| 4 | Subject: [PATCH] Update syscalls for r32/rv64 from kernel 6.4 through 6.10 | ||
| 5 | |||
| 6 | Upstream-Status: Submitted [https://www.openwall.com/lists/musl/2024/12/04/3] | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | arch/riscv32/bits/syscall.h.in | 11 +++++++++++ | ||
| 10 | arch/riscv64/bits/syscall.h.in | 11 +++++++++++ | ||
| 11 | 2 files changed, 22 insertions(+) | ||
| 12 | |||
| 13 | diff --git a/arch/riscv32/bits/syscall.h.in b/arch/riscv32/bits/syscall.h.in | ||
| 14 | index 9228d840..a54d9ffc 100644 | ||
| 15 | --- a/arch/riscv32/bits/syscall.h.in | ||
| 16 | +++ b/arch/riscv32/bits/syscall.h.in | ||
| 17 | @@ -216,6 +216,7 @@ | ||
| 18 | #define __NR_perf_event_open 241 | ||
| 19 | #define __NR_accept4 242 | ||
| 20 | #define __NR_arch_specific_syscall 244 | ||
| 21 | +#define __NR_riscv_hwprobe 258 | ||
| 22 | #define __NR_prlimit64 261 | ||
| 23 | #define __NR_fanotify_init 262 | ||
| 24 | #define __NR_fanotify_mark 263 | ||
| 25 | @@ -295,6 +296,16 @@ | ||
| 26 | #define __NR_cachestat 451 | ||
| 27 | #define __NR_fchmodat2 452 | ||
| 28 | #define __NR_futex __NR_futex_time64 | ||
| 29 | +#define __NR_map_shadow_stack 453 | ||
| 30 | +#define __NR_futex_wake 454 | ||
| 31 | +#define __NR_futex_wait 455 | ||
| 32 | +#define __NR_futex_requeue 456 | ||
| 33 | +#define __NR_statmount 457 | ||
| 34 | +#define __NR_listmount 458 | ||
| 35 | +#define __NR_lsm_get_self_attr 459 | ||
| 36 | +#define __NR_lsm_list_modules 461 | ||
| 37 | +#define __NR_lsm_set_self_attr 460 | ||
| 38 | +#define __NR_mseal 462 | ||
| 39 | |||
| 40 | #define __NR_sysriscv __NR_arch_specific_syscall | ||
| 41 | #define __NR_riscv_flush_icache (__NR_sysriscv + 15) | ||
| 42 | diff --git a/arch/riscv64/bits/syscall.h.in b/arch/riscv64/bits/syscall.h.in | ||
| 43 | index e362bd0e..6991a89c 100644 | ||
| 44 | --- a/arch/riscv64/bits/syscall.h.in | ||
| 45 | +++ b/arch/riscv64/bits/syscall.h.in | ||
| 46 | @@ -242,6 +242,7 @@ | ||
| 47 | #define __NR_accept4 242 | ||
| 48 | #define __NR_recvmmsg 243 | ||
| 49 | #define __NR_arch_specific_syscall 244 | ||
| 50 | +#define __NR_riscv_hwprobe 258 | ||
| 51 | #define __NR_wait4 260 | ||
| 52 | #define __NR_prlimit64 261 | ||
| 53 | #define __NR_fanotify_init 262 | ||
| 54 | @@ -304,6 +305,16 @@ | ||
| 55 | #define __NR_set_mempolicy_home_node 450 | ||
| 56 | #define __NR_cachestat 451 | ||
| 57 | #define __NR_fchmodat2 452 | ||
| 58 | +#define __NR_map_shadow_stack 453 | ||
| 59 | +#define __NR_futex_wake 454 | ||
| 60 | +#define __NR_futex_wait 455 | ||
| 61 | +#define __NR_futex_requeue 456 | ||
| 62 | +#define __NR_statmount 457 | ||
| 63 | +#define __NR_listmount 458 | ||
| 64 | +#define __NR_lsm_get_self_attr 459 | ||
| 65 | +#define __NR_lsm_list_modules 461 | ||
| 66 | +#define __NR_lsm_set_self_attr 460 | ||
| 67 | +#define __NR_mseal 462 | ||
| 68 | |||
| 69 | #define __NR_sysriscv __NR_arch_specific_syscall | ||
| 70 | #define __NR_riscv_flush_icache (__NR_sysriscv + 15) | ||
diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb index 2ce16d041d..9d33df4996 100644 --- a/meta/recipes-core/musl/musl_git.bb +++ b/meta/recipes-core/musl/musl_git.bb | |||
| @@ -13,6 +13,7 @@ PV = "${BASEVER}+git" | |||
| 13 | SRC_URI = "git://git.musl-libc.org/musl;branch=master \ | 13 | SRC_URI = "git://git.musl-libc.org/musl;branch=master \ |
| 14 | file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \ | 14 | file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \ |
| 15 | file://0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch \ | 15 | file://0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch \ |
| 16 | file://0001-Update-syscalls-for-r32-rv64-from-kernel-6.4-through.patch \ | ||
| 16 | " | 17 | " |
| 17 | 18 | ||
| 18 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
