summaryrefslogtreecommitdiffstats
path: root/linux/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/errors.c')
-rw-r--r--linux/errors.c47
1 files changed, 31 insertions, 16 deletions
diff --git a/linux/errors.c b/linux/errors.c
index 94c3cd2..0b1c2ea 100644
--- a/linux/errors.c
+++ b/linux/errors.c
@@ -14,7 +14,8 @@ get_linux_syscall_errors(enum libsyscalls_arch arch, const struct libsyscalls_na
goto out
switch ((int)arch) {
- case LIBSYSCALLS_ARCH_ALPHA:
+ case LIBSYSCALLS_ARCH_ALPHA_LE:
+ case LIBSYSCALLS_ARCH_ALPHA_BE:
#ifdef LIST_LINUX_ERRORS_FOR_ALPHA
CASE(alpha);
#else
@@ -30,15 +31,18 @@ get_linux_syscall_errors(enum libsyscalls_arch arch, const struct libsyscalls_na
break;
#endif
- case LIBSYSCALLS_ARCH_ARM_OABI:
- case LIBSYSCALLS_ARCH_ARM_EABI:
+ case LIBSYSCALLS_ARCH_ARM_OABI_LE:
+ case LIBSYSCALLS_ARCH_ARM_OABI_BE:
+ case LIBSYSCALLS_ARCH_ARM_EABI_LE:
+ case LIBSYSCALLS_ARCH_ARM_EABI_BE:
#ifdef LIST_LINUX_ERRORS_FOR_ARM
CASE(arm);
#else
break;
#endif
- case LIBSYSCALLS_ARCH_IA64:
+ case LIBSYSCALLS_ARCH_IA64_LE:
+ case LIBSYSCALLS_ARCH_IA64_BE:
#ifdef LIST_LINUX_ERRORS_FOR_IA64
CASE(ia64);
#else
@@ -52,16 +56,20 @@ get_linux_syscall_errors(enum libsyscalls_arch arch, const struct libsyscalls_na
break;
#endif
- case LIBSYSCALLS_ARCH_MICROBLAZE:
-#ifdef LIST_LINUX_ERRORS_FOR_MICROBLAZE
+ case LIBSYSCALLS_ARCH_MICROBLAZE_32_LE:
+ case LIBSYSCALLS_ARCH_MICROBLAZE_32_BE:
+#ifdef LIST_LINUX_ERRORS_FOR_MICROBLAZE_32
CASE(microblaze);
#else
break;
#endif
- case LIBSYSCALLS_ARCH_MIPS_O32:
- case LIBSYSCALLS_ARCH_MIPS_N32:
- case LIBSYSCALLS_ARCH_MIPS_N64:
+ case LIBSYSCALLS_ARCH_MIPS_O32_LE:
+ case LIBSYSCALLS_ARCH_MIPS_O32_BE:
+ case LIBSYSCALLS_ARCH_MIPS_N32_LE:
+ case LIBSYSCALLS_ARCH_MIPS_N32_BE:
+ case LIBSYSCALLS_ARCH_MIPS_N64_LE:
+ case LIBSYSCALLS_ARCH_MIPS_N64_BE:
#ifdef LIST_LINUX_ERRORS_FOR_MIPS
CASE(mips);
#else
@@ -76,10 +84,14 @@ get_linux_syscall_errors(enum libsyscalls_arch arch, const struct libsyscalls_na
break;
#endif
- case LIBSYSCALLS_ARCH_POWERPC_32:
- case LIBSYSCALLS_ARCH_POWERPC_64:
- case LIBSYSCALLS_ARCH_POWERPC_NOSPU:
- case LIBSYSCALLS_ARCH_POWERPC_SPU:
+ case LIBSYSCALLS_ARCH_POWERPC_32_LE:
+ case LIBSYSCALLS_ARCH_POWERPC_32_BE:
+ case LIBSYSCALLS_ARCH_POWERPC_64_LE:
+ case LIBSYSCALLS_ARCH_POWERPC_64_BE:
+ case LIBSYSCALLS_ARCH_POWERPC_NOSPU_LE:
+ case LIBSYSCALLS_ARCH_POWERPC_NOSPU_BE:
+ case LIBSYSCALLS_ARCH_POWERPC_SPU_LE:
+ case LIBSYSCALLS_ARCH_POWERPC_SPU_BE:
#ifdef LIST_LINUX_ERRORS_FOR_POWERPC
CASE(powerpc);
#else
@@ -94,7 +106,8 @@ get_linux_syscall_errors(enum libsyscalls_arch arch, const struct libsyscalls_na
break;
#endif
- case LIBSYSCALLS_ARCH_SH:
+ case LIBSYSCALLS_ARCH_SH_LE:
+ case LIBSYSCALLS_ARCH_SH_BE:
#ifdef LIST_LINUX_ERRORS_FOR_SH
CASE(sh);
#else
@@ -102,14 +115,16 @@ get_linux_syscall_errors(enum libsyscalls_arch arch, const struct libsyscalls_na
#endif
case LIBSYSCALLS_ARCH_SPARC_32:
- case LIBSYSCALLS_ARCH_SPARC_64:
+ case LIBSYSCALLS_ARCH_SPARC_64_LE:
+ case LIBSYSCALLS_ARCH_SPARC_64_BE:
#ifdef LIST_LINUX_ERRORS_FOR_SPARC
CASE(sparc);
#else
break;
#endif
- case LIBSYSCALLS_ARCH_XTENSA:
+ case LIBSYSCALLS_ARCH_XTENSA_LE:
+ case LIBSYSCALLS_ARCH_XTENSA_BE:
#ifdef LIST_LINUX_ERRORS_FOR_XTENSA
CASE(xtensa);
#else