1 /* Generated by ./xlat/gen.sh from ./xlat/archvals.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(ARCH_SET_GS) || (defined(HAVE_DECL_ARCH_SET_GS) && HAVE_DECL_ARCH_SET_GS) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((ARCH_SET_GS) == (0x1001), "ARCH_SET_GS != 0x1001"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define ARCH_SET_GS 0x1001 12 #endif 13 #if defined(ARCH_SET_FS) || (defined(HAVE_DECL_ARCH_SET_FS) && HAVE_DECL_ARCH_SET_FS) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((ARCH_SET_FS) == (0x1002), "ARCH_SET_FS != 0x1002"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define ARCH_SET_FS 0x1002 19 #endif 20 #if defined(ARCH_GET_FS) || (defined(HAVE_DECL_ARCH_GET_FS) && HAVE_DECL_ARCH_GET_FS) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((ARCH_GET_FS) == (0x1003), "ARCH_GET_FS != 0x1003"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define ARCH_GET_FS 0x1003 26 #endif 27 #if defined(ARCH_GET_GS) || (defined(HAVE_DECL_ARCH_GET_GS) && HAVE_DECL_ARCH_GET_GS) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((ARCH_GET_GS) == (0x1004), "ARCH_GET_GS != 0x1004"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define ARCH_GET_GS 0x1004 33 #endif 34 #if defined(ARCH_GET_CPUID) || (defined(HAVE_DECL_ARCH_GET_CPUID) && HAVE_DECL_ARCH_GET_CPUID) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((ARCH_GET_CPUID) == (0x1011), "ARCH_GET_CPUID != 0x1011"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define ARCH_GET_CPUID 0x1011 40 #endif 41 #if defined(ARCH_SET_CPUID) || (defined(HAVE_DECL_ARCH_SET_CPUID) && HAVE_DECL_ARCH_SET_CPUID) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((ARCH_SET_CPUID) == (0x1012), "ARCH_SET_CPUID != 0x1012"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define ARCH_SET_CPUID 0x1012 47 #endif 48 #if defined(ARCH_MAP_VDSO_X32) || (defined(HAVE_DECL_ARCH_MAP_VDSO_X32) && HAVE_DECL_ARCH_MAP_VDSO_X32) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((ARCH_MAP_VDSO_X32) == (0x2001), "ARCH_MAP_VDSO_X32 != 0x2001"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define ARCH_MAP_VDSO_X32 0x2001 54 #endif 55 #if defined(ARCH_MAP_VDSO_32) || (defined(HAVE_DECL_ARCH_MAP_VDSO_32) && HAVE_DECL_ARCH_MAP_VDSO_32) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((ARCH_MAP_VDSO_32) == (0x2002), "ARCH_MAP_VDSO_32 != 0x2002"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define ARCH_MAP_VDSO_32 0x2002 61 #endif 62 #if defined(ARCH_MAP_VDSO_64) || (defined(HAVE_DECL_ARCH_MAP_VDSO_64) && HAVE_DECL_ARCH_MAP_VDSO_64) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((ARCH_MAP_VDSO_64) == (0x2003), "ARCH_MAP_VDSO_64 != 0x2003"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define ARCH_MAP_VDSO_64 0x2003 68 #endif 69 70 #ifndef XLAT_MACROS_ONLY 71 72 # ifdef IN_MPERS 73 74 # error static const struct xlat archvals in mpers mode 75 76 # else 77 78 static 79 const struct xlat archvals[] = { 80 XLAT(ARCH_SET_GS), 81 XLAT(ARCH_SET_FS), 82 XLAT(ARCH_GET_FS), 83 XLAT(ARCH_GET_GS), 84 XLAT(ARCH_GET_CPUID), 85 XLAT(ARCH_SET_CPUID), 86 XLAT(ARCH_MAP_VDSO_X32), 87 XLAT(ARCH_MAP_VDSO_32), 88 XLAT(ARCH_MAP_VDSO_64), 89 XLAT_END 90 }; 91 92 # endif /* !IN_MPERS */ 93 94 #endif /* !XLAT_MACROS_ONLY */ 95