|
@@ -4,11 +4,6 @@
|
|
#undef notrace
|
|
#undef notrace
|
|
#define notrace __attribute__((no_instrument_function))
|
|
#define notrace __attribute__((no_instrument_function))
|
|
|
|
|
|
-#ifdef CONFIG_X86_64
|
|
|
|
-#define __ALIGN .p2align 4,,15
|
|
|
|
-#define __ALIGN_STR ".p2align 4,,15"
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#ifdef CONFIG_X86_32
|
|
#ifdef CONFIG_X86_32
|
|
#define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0)))
|
|
#define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0)))
|
|
/*
|
|
/*
|
|
@@ -50,16 +45,25 @@
|
|
__asmlinkage_protect_n(ret, "g" (arg1), "g" (arg2), "g" (arg3), \
|
|
__asmlinkage_protect_n(ret, "g" (arg1), "g" (arg2), "g" (arg3), \
|
|
"g" (arg4), "g" (arg5), "g" (arg6))
|
|
"g" (arg4), "g" (arg5), "g" (arg6))
|
|
|
|
|
|
-#endif
|
|
|
|
|
|
+#endif /* CONFIG_X86_32 */
|
|
|
|
+
|
|
|
|
+#ifdef __ASSEMBLY__
|
|
|
|
|
|
#define GLOBAL(name) \
|
|
#define GLOBAL(name) \
|
|
.globl name; \
|
|
.globl name; \
|
|
name:
|
|
name:
|
|
|
|
|
|
|
|
+#ifdef CONFIG_X86_64
|
|
|
|
+#define __ALIGN .p2align 4,,15
|
|
|
|
+#define __ALIGN_STR ".p2align 4,,15"
|
|
|
|
+#endif
|
|
|
|
+
|
|
#ifdef CONFIG_X86_ALIGNMENT_16
|
|
#ifdef CONFIG_X86_ALIGNMENT_16
|
|
#define __ALIGN .align 16,0x90
|
|
#define __ALIGN .align 16,0x90
|
|
#define __ALIGN_STR ".align 16,0x90"
|
|
#define __ALIGN_STR ".align 16,0x90"
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#endif /* __ASSEMBLY__ */
|
|
|
|
+
|
|
#endif /* _ASM_X86_LINKAGE_H */
|
|
#endif /* _ASM_X86_LINKAGE_H */
|
|
|
|
|