diff options
author | Mark Hatle <mark.hatle@amd.com> | 2023-09-22 12:53:09 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-09-22 12:53:09 -0600 |
commit | c13e0ce78ba6c7fde53a3760cb2ed4da4c870e08 (patch) | |
tree | e67ae8396a57e88426a104cb8c7624b0fbb5f7d9 | |
parent | dc7b83b753e2213bd15d35432e5d2e95578ee980 (diff) | |
download | meta-xilinx-c13e0ce78ba6c7fde53a3760cb2ed4da4c870e08.tar.gz |
meta-microblaze: systemd: Refactor for update systemd
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
3 files changed, 111 insertions, 80 deletions
diff --git a/meta-microblaze/recipes-core/systemd/files/microblaze-disable-stack-protector.patch b/meta-microblaze/recipes-core/systemd/files/microblaze-disable-stack-protector.patch index e0b40b8d..157b008a 100644 --- a/meta-microblaze/recipes-core/systemd/files/microblaze-disable-stack-protector.patch +++ b/meta-microblaze/recipes-core/systemd/files/microblaze-disable-stack-protector.patch | |||
@@ -1,30 +1,37 @@ | |||
1 | Microblaze does not support stack-protector: | 1 | From ec286a0b613a9fa487be75b7c1c01e5c8ce62a1a Mon Sep 17 00:00:00 2001 |
2 | From: Mark Hatle <mark.hatle@amd.com> | ||
3 | Date: Fri, 22 Sep 2023 11:01:16 -0600 | ||
4 | Subject: [PATCH] meson.build: Microblaze does not support stack-protector | ||
2 | 5 | ||
3 | | cc1: warning: '-fstack-protector' not supported for this target | 6 | | cc1: warning: '-fstack-protector' not supported for this target |
4 | | ninja: build stopped: subcommand failed. | 7 | | ninja: build stopped: subcommand failed. |
5 | 8 | ||
6 | Upstream-Status: Pending | 9 | Upstream-Status: Inappropriate [Configuration] |
7 | 10 | ||
8 | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> | 11 | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> |
12 | --- | ||
13 | meson.build | 3 --- | ||
14 | 1 file changed, 3 deletions(-) | ||
9 | 15 | ||
10 | Index: git/meson.build | 16 | diff --git a/meson.build b/meson.build |
11 | =================================================================== | 17 | index 395eca1943..8b87c5b3a2 100644 |
12 | --- git.orig/meson.build | 18 | --- a/meson.build |
13 | +++ git/meson.build | 19 | +++ b/meson.build |
14 | @@ -403,7 +403,6 @@ possible_link_flags = [ | 20 | @@ -405,14 +405,11 @@ possible_common_cc_flags = [ |
15 | '-Wl,--fatal-warnings', | ||
16 | '-Wl,-z,now', | ||
17 | '-Wl,-z,relro', | ||
18 | - '-fstack-protector', | ||
19 | ] | ||
20 | 21 | ||
21 | if get_option('b_sanitize') == 'none' | ||
22 | @@ -423,8 +422,6 @@ possible_cc_flags = possible_common_cc_f | ||
23 | '-fdiagnostics-show-option', | 22 | '-fdiagnostics-show-option', |
24 | '-fno-common', | 23 | '-fno-common', |
25 | '-fno-strict-aliasing', | ||
26 | - '-fstack-protector', | 24 | - '-fstack-protector', |
27 | - '-fstack-protector-strong', | 25 | - '-fstack-protector-strong', |
28 | '-fvisibility=hidden', | 26 | '-fstrict-flex-arrays', |
29 | '--param=ssp-buffer-size=4', | 27 | '--param=ssp-buffer-size=4', |
30 | ] | 28 | ] |
29 | |||
30 | possible_common_link_flags = [ | ||
31 | - '-fstack-protector', | ||
32 | ] | ||
33 | |||
34 | c_args = get_option('c_args') | ||
35 | -- | ||
36 | 2.34.1 | ||
37 | |||
diff --git a/meta-microblaze/recipes-core/systemd/files/microblaze-once-macro.patch b/meta-microblaze/recipes-core/systemd/files/microblaze-once-macro.patch index f27a8b43..3862803b 100644 --- a/meta-microblaze/recipes-core/systemd/files/microblaze-once-macro.patch +++ b/meta-microblaze/recipes-core/systemd/files/microblaze-once-macro.patch | |||
@@ -1,42 +1,49 @@ | |||
1 | For microblaze, replace the ONCE macro | 1 | From 239d51b5b02ba766f34b3fce9803f8fd13097471 Mon Sep 17 00:00:00 2001 |
2 | From: Mark Hatle <mark.hatle@amd.com> | ||
3 | Date: Fri, 22 Sep 2023 11:09:50 -0600 | ||
4 | Subject: [PATCH] macro-funcamental.h: Microblaze does not have atomic | ||
5 | functions | ||
2 | 6 | ||
3 | For some reason the systemd developers decided that needed to hardcode | 7 | For some reason the systemd developers decided that needed to hardcode |
4 | the usage of __sync_bool_compare_and_swap, however not all architectures | 8 | the usage of __atomic_exchange functions, however not all architectures |
5 | define this. Microblaze is one such architecture, so we fall back to | 9 | define this. Microblaze is one such architecture, so we fall back to |
6 | a less 'safe' way of doing the work. However a quick inspection of | 10 | a less safe way of doing the same thing. A quick inspection of |
7 | the ONCE users shows that even if we end up with a race condition the | 11 | the ONCE users show that even if we end up with a race condition the |
8 | worst expected behavior could be multiple log messages. | 12 | worst expected behavior could be multiple log messages. |
9 | 13 | ||
10 | Upstream-Status: Pending | 14 | Upstream-Status: Pending |
11 | 15 | ||
12 | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> | 16 | Signed-off-by: Mark Hatle <mark.hatle@amd.com> |
17 | --- | ||
18 | src/fundamental/macro-fundamental.h | 17 +++++++++++++++++ | ||
19 | 1 file changed, 17 insertions(+) | ||
13 | 20 | ||
14 | Index: git/src/fundamental/macro-fundamental.h | 21 | diff --git a/src/fundamental/macro-fundamental.h b/src/fundamental/macro-fundamental.h |
15 | =================================================================== | 22 | index 1d49765fce..f45f55cdfe 100644 |
16 | --- git.orig/src/fundamental/macro-fundamental.h | 23 | --- a/src/fundamental/macro-fundamental.h |
17 | +++ git/src/fundamental/macro-fundamental.h | 24 | +++ b/src/fundamental/macro-fundamental.h |
18 | @@ -109,11 +109,28 @@ | 25 | @@ -116,11 +116,28 @@ |
19 | * on this macro will run concurrently to all other code conditionalized | 26 | * on this macro will run concurrently to all other code conditionalized |
20 | * the same way, there's no ordering or completion enforced. */ | 27 | * the same way, there's no ordering or completion enforced. */ |
21 | #define ONCE __ONCE(UNIQ_T(_once_, UNIQ)) | 28 | #define ONCE __ONCE(UNIQ_T(_once_, UNIQ)) |
22 | +#if !defined (__microblaze__) | 29 | +#if !defined (__microblaze__) |
23 | #define __ONCE(o) \ | 30 | #define __ONCE(o) \ |
24 | ({ \ | 31 | ({ \ |
25 | static sd_bool (o) = sd_false; \ | 32 | static bool (o) = false; \ |
26 | __sync_bool_compare_and_swap(&(o), sd_false, sd_true); \ | 33 | __atomic_exchange_n(&(o), true, __ATOMIC_SEQ_CST); \ |
27 | }) | 34 | }) |
28 | +#else | 35 | +#else |
29 | + /* Microblaze does not contain __sync_bool_compare_and_swap, so we do it | 36 | + /* Microblaze does not contain __atomic_exchange_n*, so we do it |
30 | + * the old fashioned way. Note, it's possible that ONCE may run more | 37 | + * the old fashioned way. Note, it's possible that ONCE may run more |
31 | + * then ONCE due to possible races, however it is not expected to cause | 38 | + * then ONCE due to possible races, however it is not expected to cause |
32 | + * an issue. */ | 39 | + * an issue with systemd usage. */ |
33 | +#define __ONCE(o) \ | 40 | +#define __ONCE(o) \ |
34 | + ({ \ | 41 | + ({ \ |
35 | + static bool (o) = sd_false; \ | 42 | + static bool (o) = false; \ |
36 | + bool rc = sd_false; \ | 43 | + bool rc = false; \ |
37 | + if ((o) == sd_false) { \ | 44 | + if ((o) == false) { \ |
38 | + (o) = sd_true; \ | 45 | + (o) = true; \ |
39 | + rc = sd_true; \ | 46 | + rc = true; \ |
40 | + } \ | 47 | + } \ |
41 | + rc; \ | 48 | + rc; \ |
42 | + }) | 49 | + }) |
@@ -44,3 +51,6 @@ Index: git/src/fundamental/macro-fundamental.h | |||
44 | 51 | ||
45 | #undef MAX | 52 | #undef MAX |
46 | #define MAX(a, b) __MAX(UNIQ, (a), UNIQ, (b)) | 53 | #define MAX(a, b) __MAX(UNIQ, (a), UNIQ, (b)) |
54 | -- | ||
55 | 2.34.1 | ||
56 | |||
diff --git a/meta-microblaze/recipes-core/systemd/files/microblaze-syscalls.patch b/meta-microblaze/recipes-core/systemd/files/microblaze-syscalls.patch index afd6ac6c..75e0300b 100644 --- a/meta-microblaze/recipes-core/systemd/files/microblaze-syscalls.patch +++ b/meta-microblaze/recipes-core/systemd/files/microblaze-syscalls.patch | |||
@@ -1,14 +1,24 @@ | |||
1 | Add microblaze syscalls to systemd | 1 | From 2bd273c3a474b04b60c08c98fb7859fce28eac6d Mon Sep 17 00:00:00 2001 |
2 | From: Mark Hatle <mark.hatle@amd.com> | ||
3 | Date: Fri, 22 Sep 2023 10:26:47 -0600 | ||
4 | Subject: [PATCH] syscalls-microblaze.txt: Add microblaze syscalls to systemd | ||
2 | 5 | ||
3 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
4 | 7 | ||
5 | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> | 8 | Signed-off-by: Mark Hatle <mark.hatle@amd.com> |
9 | --- | ||
10 | src/basic/meson.build | 1 + | ||
11 | src/basic/missing_syscall_def.h | 33 ++ | ||
12 | src/basic/missing_syscalls.py | 2 + | ||
13 | src/basic/syscalls-microblaze.txt | 598 ++++++++++++++++++++++++++++++ | ||
14 | 4 files changed, 634 insertions(+) | ||
15 | create mode 100644 src/basic/syscalls-microblaze.txt | ||
6 | 16 | ||
7 | Index: git/src/basic/meson.build | 17 | diff --git a/src/basic/meson.build b/src/basic/meson.build |
8 | =================================================================== | 18 | index 3af013b014..e77f7cef16 100644 |
9 | --- git.orig/src/basic/meson.build | 19 | --- a/src/basic/meson.build |
10 | +++ git/src/basic/meson.build | 20 | +++ b/src/basic/meson.build |
11 | @@ -347,6 +347,7 @@ arch_list = [ | 21 | @@ -190,6 +190,7 @@ arch_list = [ |
12 | 'ia64', | 22 | 'ia64', |
13 | 'loongarch64', | 23 | 'loongarch64', |
14 | 'm68k', | 24 | 'm68k', |
@@ -16,10 +26,10 @@ Index: git/src/basic/meson.build | |||
16 | 'mips64', | 26 | 'mips64', |
17 | 'mips64n32', | 27 | 'mips64n32', |
18 | 'mipso32', | 28 | 'mipso32', |
19 | Index: git/src/basic/missing_syscall_def.h | 29 | diff --git a/src/basic/missing_syscall_def.h b/src/basic/missing_syscall_def.h |
20 | =================================================================== | 30 | index 402fdd00dc..94f41c1522 100644 |
21 | --- git.orig/src/basic/missing_syscall_def.h | 31 | --- a/src/basic/missing_syscall_def.h |
22 | +++ git/src/basic/missing_syscall_def.h | 32 | +++ b/src/basic/missing_syscall_def.h |
23 | @@ -16,6 +16,7 @@ | 33 | @@ -16,6 +16,7 @@ |
24 | # elif defined(__ia64__) | 34 | # elif defined(__ia64__) |
25 | # elif defined(__loongarch64) | 35 | # elif defined(__loongarch64) |
@@ -28,7 +38,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
28 | # elif defined(_MIPS_SIM) | 38 | # elif defined(_MIPS_SIM) |
29 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 39 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
30 | # elif _MIPS_SIM == _MIPS_SIM_NABI32 | 40 | # elif _MIPS_SIM == _MIPS_SIM_NABI32 |
31 | @@ -58,6 +59,8 @@ | 41 | @@ -59,6 +60,8 @@ |
32 | # define systemd_NR_bpf 280 | 42 | # define systemd_NR_bpf 280 |
33 | # elif defined(__m68k__) | 43 | # elif defined(__m68k__) |
34 | # define systemd_NR_bpf 354 | 44 | # define systemd_NR_bpf 354 |
@@ -37,7 +47,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
37 | # elif defined(_MIPS_SIM) | 47 | # elif defined(_MIPS_SIM) |
38 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 48 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
39 | # define systemd_NR_bpf 4355 | 49 | # define systemd_NR_bpf 4355 |
40 | @@ -124,6 +127,8 @@ assert_cc(__NR_bpf == systemd_NR_bpf); | 50 | @@ -127,6 +130,8 @@ assert_cc(__NR_bpf == systemd_NR_bpf); |
41 | # define systemd_NR_close_range 436 | 51 | # define systemd_NR_close_range 436 |
42 | # elif defined(__m68k__) | 52 | # elif defined(__m68k__) |
43 | # define systemd_NR_close_range 436 | 53 | # define systemd_NR_close_range 436 |
@@ -46,7 +56,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
46 | # elif defined(_MIPS_SIM) | 56 | # elif defined(_MIPS_SIM) |
47 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 57 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
48 | # define systemd_NR_close_range 4436 | 58 | # define systemd_NR_close_range 4436 |
49 | @@ -190,6 +195,8 @@ assert_cc(__NR_close_range == systemd_NR | 59 | @@ -195,6 +200,8 @@ assert_cc(__NR_close_range == systemd_NR_close_range); |
50 | # define systemd_NR_copy_file_range 285 | 60 | # define systemd_NR_copy_file_range 285 |
51 | # elif defined(__m68k__) | 61 | # elif defined(__m68k__) |
52 | # define systemd_NR_copy_file_range 376 | 62 | # define systemd_NR_copy_file_range 376 |
@@ -55,16 +65,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
55 | # elif defined(_MIPS_SIM) | 65 | # elif defined(_MIPS_SIM) |
56 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 66 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
57 | # define systemd_NR_copy_file_range 4360 | 67 | # define systemd_NR_copy_file_range 4360 |
58 | @@ -256,6 +263,8 @@ assert_cc(__NR_copy_file_range == system | 68 | @@ -263,6 +270,8 @@ assert_cc(__NR_copy_file_range == systemd_NR_copy_file_range); |
59 | # define systemd_NR_epoll_pwait2 441 | ||
60 | # elif defined(__m68k__) | ||
61 | # define systemd_NR_epoll_pwait2 441 | ||
62 | +# elif defined(__microblaze__) | ||
63 | +# define systemd_NR_epoll_pwait2 441 | ||
64 | # elif defined(_MIPS_SIM) | ||
65 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | ||
66 | # define systemd_NR_epoll_pwait2 4441 | ||
67 | @@ -322,6 +331,8 @@ assert_cc(__NR_epoll_pwait2 == systemd_N | ||
68 | # define systemd_NR_getrandom 278 | 69 | # define systemd_NR_getrandom 278 |
69 | # elif defined(__m68k__) | 70 | # elif defined(__m68k__) |
70 | # define systemd_NR_getrandom 352 | 71 | # define systemd_NR_getrandom 352 |
@@ -73,7 +74,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
73 | # elif defined(_MIPS_SIM) | 74 | # elif defined(_MIPS_SIM) |
74 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 75 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
75 | # define systemd_NR_getrandom 4353 | 76 | # define systemd_NR_getrandom 4353 |
76 | @@ -388,6 +399,8 @@ assert_cc(__NR_getrandom == systemd_NR_g | 77 | @@ -331,6 +340,8 @@ assert_cc(__NR_getrandom == systemd_NR_getrandom); |
77 | # define systemd_NR_memfd_create 279 | 78 | # define systemd_NR_memfd_create 279 |
78 | # elif defined(__m68k__) | 79 | # elif defined(__m68k__) |
79 | # define systemd_NR_memfd_create 353 | 80 | # define systemd_NR_memfd_create 353 |
@@ -82,7 +83,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
82 | # elif defined(_MIPS_SIM) | 83 | # elif defined(_MIPS_SIM) |
83 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 84 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
84 | # define systemd_NR_memfd_create 4354 | 85 | # define systemd_NR_memfd_create 4354 |
85 | @@ -454,6 +467,8 @@ assert_cc(__NR_memfd_create == systemd_N | 86 | @@ -399,6 +410,8 @@ assert_cc(__NR_memfd_create == systemd_NR_memfd_create); |
86 | # define systemd_NR_mount_setattr 442 | 87 | # define systemd_NR_mount_setattr 442 |
87 | # elif defined(__m68k__) | 88 | # elif defined(__m68k__) |
88 | # define systemd_NR_mount_setattr 442 | 89 | # define systemd_NR_mount_setattr 442 |
@@ -91,7 +92,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
91 | # elif defined(_MIPS_SIM) | 92 | # elif defined(_MIPS_SIM) |
92 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 93 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
93 | # define systemd_NR_mount_setattr 4442 | 94 | # define systemd_NR_mount_setattr 4442 |
94 | @@ -520,6 +535,8 @@ assert_cc(__NR_mount_setattr == systemd_ | 95 | @@ -467,6 +480,8 @@ assert_cc(__NR_mount_setattr == systemd_NR_mount_setattr); |
95 | # define systemd_NR_move_mount 429 | 96 | # define systemd_NR_move_mount 429 |
96 | # elif defined(__m68k__) | 97 | # elif defined(__m68k__) |
97 | # define systemd_NR_move_mount 429 | 98 | # define systemd_NR_move_mount 429 |
@@ -100,7 +101,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
100 | # elif defined(_MIPS_SIM) | 101 | # elif defined(_MIPS_SIM) |
101 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 102 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
102 | # define systemd_NR_move_mount 4429 | 103 | # define systemd_NR_move_mount 4429 |
103 | @@ -586,6 +603,8 @@ assert_cc(__NR_move_mount == systemd_NR_ | 104 | @@ -535,6 +550,8 @@ assert_cc(__NR_move_mount == systemd_NR_move_mount); |
104 | # define systemd_NR_name_to_handle_at 264 | 105 | # define systemd_NR_name_to_handle_at 264 |
105 | # elif defined(__m68k__) | 106 | # elif defined(__m68k__) |
106 | # define systemd_NR_name_to_handle_at 340 | 107 | # define systemd_NR_name_to_handle_at 340 |
@@ -109,7 +110,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
109 | # elif defined(_MIPS_SIM) | 110 | # elif defined(_MIPS_SIM) |
110 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 111 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
111 | # define systemd_NR_name_to_handle_at 4339 | 112 | # define systemd_NR_name_to_handle_at 4339 |
112 | @@ -652,6 +671,8 @@ assert_cc(__NR_name_to_handle_at == syst | 113 | @@ -603,6 +620,8 @@ assert_cc(__NR_name_to_handle_at == systemd_NR_name_to_handle_at); |
113 | # define systemd_NR_open_tree 428 | 114 | # define systemd_NR_open_tree 428 |
114 | # elif defined(__m68k__) | 115 | # elif defined(__m68k__) |
115 | # define systemd_NR_open_tree 428 | 116 | # define systemd_NR_open_tree 428 |
@@ -118,7 +119,16 @@ Index: git/src/basic/missing_syscall_def.h | |||
118 | # elif defined(_MIPS_SIM) | 119 | # elif defined(_MIPS_SIM) |
119 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 120 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
120 | # define systemd_NR_open_tree 4428 | 121 | # define systemd_NR_open_tree 4428 |
121 | @@ -784,6 +805,8 @@ assert_cc(__NR_openat2 == systemd_NR_ope | 122 | @@ -671,6 +690,8 @@ assert_cc(__NR_open_tree == systemd_NR_open_tree); |
123 | # define systemd_NR_openat2 437 | ||
124 | # elif defined(__m68k__) | ||
125 | # define systemd_NR_openat2 437 | ||
126 | +# elif defined(__microblaze__) | ||
127 | +# define systemd_NR_openat2 437 | ||
128 | # elif defined(_MIPS_SIM) | ||
129 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | ||
130 | # define systemd_NR_openat2 4437 | ||
131 | @@ -739,6 +760,8 @@ assert_cc(__NR_openat2 == systemd_NR_openat2); | ||
122 | # define systemd_NR_pidfd_open 434 | 132 | # define systemd_NR_pidfd_open 434 |
123 | # elif defined(__m68k__) | 133 | # elif defined(__m68k__) |
124 | # define systemd_NR_pidfd_open 434 | 134 | # define systemd_NR_pidfd_open 434 |
@@ -127,7 +137,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
127 | # elif defined(_MIPS_SIM) | 137 | # elif defined(_MIPS_SIM) |
128 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 138 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
129 | # define systemd_NR_pidfd_open 4434 | 139 | # define systemd_NR_pidfd_open 4434 |
130 | @@ -850,6 +873,8 @@ assert_cc(__NR_pidfd_open == systemd_NR_ | 140 | @@ -807,6 +830,8 @@ assert_cc(__NR_pidfd_open == systemd_NR_pidfd_open); |
131 | # define systemd_NR_pidfd_send_signal 424 | 141 | # define systemd_NR_pidfd_send_signal 424 |
132 | # elif defined(__m68k__) | 142 | # elif defined(__m68k__) |
133 | # define systemd_NR_pidfd_send_signal 424 | 143 | # define systemd_NR_pidfd_send_signal 424 |
@@ -136,7 +146,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
136 | # elif defined(_MIPS_SIM) | 146 | # elif defined(_MIPS_SIM) |
137 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 147 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
138 | # define systemd_NR_pidfd_send_signal 4424 | 148 | # define systemd_NR_pidfd_send_signal 4424 |
139 | @@ -916,6 +941,8 @@ assert_cc(__NR_pidfd_send_signal == syst | 149 | @@ -875,6 +900,8 @@ assert_cc(__NR_pidfd_send_signal == systemd_NR_pidfd_send_signal); |
140 | # define systemd_NR_pkey_mprotect 288 | 150 | # define systemd_NR_pkey_mprotect 288 |
141 | # elif defined(__m68k__) | 151 | # elif defined(__m68k__) |
142 | # define systemd_NR_pkey_mprotect 381 | 152 | # define systemd_NR_pkey_mprotect 381 |
@@ -145,7 +155,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
145 | # elif defined(_MIPS_SIM) | 155 | # elif defined(_MIPS_SIM) |
146 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 156 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
147 | # define systemd_NR_pkey_mprotect 4363 | 157 | # define systemd_NR_pkey_mprotect 4363 |
148 | @@ -982,6 +1009,8 @@ assert_cc(__NR_pkey_mprotect == systemd_ | 158 | @@ -943,6 +970,8 @@ assert_cc(__NR_pkey_mprotect == systemd_NR_pkey_mprotect); |
149 | # define systemd_NR_renameat2 276 | 159 | # define systemd_NR_renameat2 276 |
150 | # elif defined(__m68k__) | 160 | # elif defined(__m68k__) |
151 | # define systemd_NR_renameat2 351 | 161 | # define systemd_NR_renameat2 351 |
@@ -154,7 +164,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
154 | # elif defined(_MIPS_SIM) | 164 | # elif defined(_MIPS_SIM) |
155 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 165 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
156 | # define systemd_NR_renameat2 4351 | 166 | # define systemd_NR_renameat2 4351 |
157 | @@ -1048,6 +1077,8 @@ assert_cc(__NR_renameat2 == systemd_NR_r | 167 | @@ -1011,6 +1040,8 @@ assert_cc(__NR_renameat2 == systemd_NR_renameat2); |
158 | # define systemd_NR_setns 268 | 168 | # define systemd_NR_setns 268 |
159 | # elif defined(__m68k__) | 169 | # elif defined(__m68k__) |
160 | # define systemd_NR_setns 344 | 170 | # define systemd_NR_setns 344 |
@@ -163,7 +173,7 @@ Index: git/src/basic/missing_syscall_def.h | |||
163 | # elif defined(_MIPS_SIM) | 173 | # elif defined(_MIPS_SIM) |
164 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 174 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
165 | # define systemd_NR_setns 4344 | 175 | # define systemd_NR_setns 4344 |
166 | @@ -1114,6 +1145,8 @@ assert_cc(__NR_setns == systemd_NR_setns | 176 | @@ -1079,6 +1110,8 @@ assert_cc(__NR_setns == systemd_NR_setns); |
167 | # define systemd_NR_statx 291 | 177 | # define systemd_NR_statx 291 |
168 | # elif defined(__m68k__) | 178 | # elif defined(__m68k__) |
169 | # define systemd_NR_statx 379 | 179 | # define systemd_NR_statx 379 |
@@ -172,11 +182,11 @@ Index: git/src/basic/missing_syscall_def.h | |||
172 | # elif defined(_MIPS_SIM) | 182 | # elif defined(_MIPS_SIM) |
173 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 183 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
174 | # define systemd_NR_statx 4366 | 184 | # define systemd_NR_statx 4366 |
175 | Index: git/src/basic/missing_syscalls.py | 185 | diff --git a/src/basic/missing_syscalls.py b/src/basic/missing_syscalls.py |
176 | =================================================================== | 186 | index 5ccf02adec..e09023abe1 100644 |
177 | --- git.orig/src/basic/missing_syscalls.py | 187 | --- a/src/basic/missing_syscalls.py |
178 | +++ git/src/basic/missing_syscalls.py | 188 | +++ b/src/basic/missing_syscalls.py |
179 | @@ -64,6 +64,8 @@ DEF_TEMPLATE_B = '''\ | 189 | @@ -63,6 +63,8 @@ DEF_TEMPLATE_B = '''\ |
180 | # define systemd_NR_{syscall} {nr_loongarch64} | 190 | # define systemd_NR_{syscall} {nr_loongarch64} |
181 | # elif defined(__m68k__) | 191 | # elif defined(__m68k__) |
182 | # define systemd_NR_{syscall} {nr_m68k} | 192 | # define systemd_NR_{syscall} {nr_m68k} |
@@ -185,10 +195,11 @@ Index: git/src/basic/missing_syscalls.py | |||
185 | # elif defined(_MIPS_SIM) | 195 | # elif defined(_MIPS_SIM) |
186 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | 196 | # if _MIPS_SIM == _MIPS_SIM_ABI32 |
187 | # define systemd_NR_{syscall} {nr_mipso32} | 197 | # define systemd_NR_{syscall} {nr_mipso32} |
188 | Index: git/src/basic/syscalls-microblaze.txt | 198 | diff --git a/src/basic/syscalls-microblaze.txt b/src/basic/syscalls-microblaze.txt |
189 | =================================================================== | 199 | new file mode 100644 |
200 | index 0000000000..3fc4cd6aef | ||
190 | --- /dev/null | 201 | --- /dev/null |
191 | +++ git/src/basic/syscalls-microblaze.txt | 202 | +++ b/src/basic/syscalls-microblaze.txt |
192 | @@ -0,0 +1,598 @@ | 203 | @@ -0,0 +1,598 @@ |
193 | +_llseek 140 | 204 | +_llseek 140 |
194 | +_newselect 142 | 205 | +_newselect 142 |
@@ -788,3 +799,6 @@ Index: git/src/basic/syscalls-microblaze.txt | |||
788 | +waitpid 7 | 799 | +waitpid 7 |
789 | +write 4 | 800 | +write 4 |
790 | +writev 146 | 801 | +writev 146 |
802 | -- | ||
803 | 2.34.1 | ||
804 | |||