Browse Source

linux/syscall.h: make subcall decoding configuration more readable

* linux/syscall.h: Inverse and sort the subcall ifdef,
add a comment why subcall decoding support is not enabled
on some architectures.
Dmitry V. Levin 7 years ago
parent
commit
828bbd846e
1 changed files with 14 additions and 8 deletions
  1. 14
    8
      linux/syscall.h

+ 14
- 8
linux/syscall.h View File

@@ -313,14 +313,20 @@ int sys_osf_utimes();
313 313
 int sys_osf_wait4();
314 314
 #endif
315 315
 
316
-#if !defined(ALPHA) \
317
- && !defined(MIPS) \
318
- && !defined(HPPA) \
319
- && !defined(__ARM_EABI__) \
320
- && !defined(BFIN) \
321
- && !defined(TILE) \
322
- && !defined(XTENSA)
323
-# if defined(SPARC) || defined(SPARC64)
316
+#if defined ALPHA \
317
+ || defined __ARM_EABI__ \
318
+ || defined BFIN \
319
+ || defined HPPA \
320
+ || defined MIPS \
321
+ || defined TILE \
322
+ || defined XTENSA
323
+/*
324
+ * This architecture does not have a socketcall or ipc subcall,
325
+ * it has dedicated syscalls instead, so there is no need
326
+ * to implement socket or ipc subcall decoding.
327
+ */
328
+#else
329
+# if defined SPARC || defined SPARC64
324 330
 #  define SYS_socket_subcall	353
325 331
 # else
326 332
 #  define SYS_socket_subcall	400

Loading…
Cancel
Save