|
38 | 38 | #include "arch-ppc64.h" |
39 | 39 | #include "arch-s390.h" |
40 | 40 | #include "arch-s390x.h" |
| 41 | +#include "arch-sh.h" |
41 | 42 |
|
42 | 43 | /** |
43 | 44 | * compare the syscall values |
@@ -77,6 +78,7 @@ int main(int argc, char *argv[]) |
77 | 78 | int i_ppc64 = 0; |
78 | 79 | int i_s390 = 0; |
79 | 80 | int i_s390x = 0; |
| 81 | + int i_sh = 0; |
80 | 82 | char str_miss[256]; |
81 | 83 | const char *sys_name; |
82 | 84 | const struct arch_syscall_def *sys; |
@@ -115,6 +117,8 @@ int main(int argc, char *argv[]) |
115 | 117 | s390_syscall_iterate(i_s390)); |
116 | 118 | syscall_check(str_miss, sys_name, "s390x", |
117 | 119 | s390x_syscall_iterate(i_s390x)); |
| 120 | + syscall_check(str_miss, sys_name, "sh", |
| 121 | + sh_syscall_iterate(i_sh)); |
118 | 122 |
|
119 | 123 | /* output the results */ |
120 | 124 | printf("%s: ", sys_name); |
@@ -151,12 +155,14 @@ int main(int argc, char *argv[]) |
151 | 155 | i_s390 = -1; |
152 | 156 | if (!s390x_syscall_iterate(++i_s390x)->name) |
153 | 157 | i_s390x = -1; |
| 158 | + if (!sh_syscall_iterate(++i_sh)->name) |
| 159 | + i_sh = -1; |
154 | 160 | } while (i_x86_64 >= 0 && i_x32 >= 0 && |
155 | 161 | i_arm >= 0 && i_aarch64 >= 0 && |
156 | 162 | i_mips >= 0 && i_mips64 >= 0 && i_mips64n32 >= 0 && |
157 | 163 | i_parisc >= 0 && |
158 | 164 | i_ppc >= 0 && i_ppc64 >= 0 && |
159 | | - i_s390 >= 0 && i_s390x >= 0); |
| 165 | + i_s390 >= 0 && i_s390x >= 0 && i_sh >= 0); |
160 | 166 |
|
161 | 167 | /* check for any leftovers */ |
162 | 168 | sys = x86_syscall_iterate(i_x86 + 1); |
@@ -212,6 +218,10 @@ int main(int argc, char *argv[]) |
212 | 218 | printf("ERROR, s390x has additional syscalls\n"); |
213 | 219 | return 1; |
214 | 220 | } |
| 221 | + if (i_sh >= 0) { |
| 222 | + printf("ERROR, sh has additional syscalls\n"); |
| 223 | + return 1; |
| 224 | + } |
215 | 225 |
|
216 | 226 | /* if we made it here, all is good */ |
217 | 227 | return 0; |
|
0 commit comments