@@ -105,6 +105,8 @@ struct hwloc_linux_backend_data_s {
105
105
# define __NR_sched_setaffinity 241
106
106
# elif defined(__cris__ )
107
107
# define __NR_sched_setaffinity 241
108
+ # elif defined(__loongarch__ )
109
+ # define __NR_sched_setaffinity 122
108
110
/*# elif defined(__mips__)
109
111
# define __NR_sched_setaffinity TODO (32/64/nabi) */
110
112
# else
@@ -142,6 +144,8 @@ struct hwloc_linux_backend_data_s {
142
144
# define __NR_sched_getaffinity 242
143
145
# elif defined(__cris__ )
144
146
# define __NR_sched_getaffinity 242
147
+ # elif defined(__loongarch__ )
148
+ # define __NR_sched_getaffinity 123
145
149
/*# elif defined(__mips__)
146
150
# define __NR_sched_getaffinity TODO (32/64/nabi) */
147
151
# else
@@ -218,6 +222,8 @@ struct hwloc_linux_backend_data_s {
218
222
# define __NR_mbind 319
219
223
# elif defined(__cris__ )
220
224
/* sys_ni_syscall when CRIS removed in 4.17 */
225
+ # elif defined(__loongarch__ )
226
+ # define __NR_mbind 235
221
227
# endif
222
228
#endif
223
229
static __hwloc_inline long hwloc_mbind (void * addr __hwloc_attribute_unused ,
@@ -263,6 +269,8 @@ static __hwloc_inline long hwloc_mbind(void *addr __hwloc_attribute_unused,
263
269
# define __NR_set_mempolicy 321
264
270
# elif defined(__cris__ )
265
271
/* sys_ni_syscall when CRIS removed in 4.17 */
272
+ # elif defined(__loongarch__ )
273
+ # define __NR_set_mempolicy 237
266
274
# endif
267
275
#endif
268
276
static __hwloc_inline long hwloc_set_mempolicy (int mode __hwloc_attribute_unused ,
@@ -305,6 +313,8 @@ static __hwloc_inline long hwloc_set_mempolicy(int mode __hwloc_attribute_unused
305
313
# define __NR_get_mempolicy 320
306
314
# elif defined(__cris__ )
307
315
/* sys_ni_syscall when CRIS removed in 4.17 */
316
+ # elif defined(__loongarch__ )
317
+ # define __NR_get_mempolicy 236
308
318
# endif
309
319
#endif
310
320
static __hwloc_inline long hwloc_get_mempolicy (int * mode __hwloc_attribute_unused ,
@@ -349,6 +359,8 @@ static __hwloc_inline long hwloc_get_mempolicy(int *mode __hwloc_attribute_unuse
349
359
# define __NR_migrate_pages 400
350
360
# elif defined(__cris__ )
351
361
# define __NR_migrate_pages 294
362
+ # elif defined(__loongarch__ )
363
+ # define __NR_migrate_pages 238
352
364
# endif
353
365
#endif
354
366
static __hwloc_inline long hwloc_migrate_pages (int pid __hwloc_attribute_unused ,
@@ -392,6 +404,8 @@ static __hwloc_inline long hwloc_migrate_pages(int pid __hwloc_attribute_unused,
392
404
# define __NR_move_pages 344
393
405
# elif defined(__cris__ )
394
406
# define __NR_migrate_pages 317
407
+ # elif defined(__loongarch__ )
408
+ # define __NR_move_pages 239
395
409
# endif
396
410
#endif
397
411
static __hwloc_inline long hwloc_move_pages (int pid __hwloc_attribute_unused ,
0 commit comments