aboutsummaryrefslogtreecommitdiffstats
path: root/arch/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'arch/Kconfig')
-rw-r--r--arch/Kconfig19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/Kconfig b/arch/Kconfig
index 366ec06a5185..c31416b10586 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -112,6 +112,25 @@ config HAVE_EFFICIENT_UNALIGNED_ACCESS
112 See Documentation/unaligned-memory-access.txt for more 112 See Documentation/unaligned-memory-access.txt for more
113 information on the topic of unaligned memory accesses. 113 information on the topic of unaligned memory accesses.
114 114
115config ARCH_USE_BUILTIN_BSWAP
116 bool
117 help
118 Modern versions of GCC (since 4.4) have builtin functions
119 for handling byte-swapping. Using these, instead of the old
120 inline assembler that the architecture code provides in the
121 __arch_bswapXX() macros, allows the compiler to see what's
122 happening and offers more opportunity for optimisation. In
123 particular, the compiler will be able to combine the byteswap
124 with a nearby load or store and use load-and-swap or
125 store-and-swap instructions if the architecture has them. It
126 should almost *never* result in code which is worse than the
127 hand-coded assembler in <asm/swab.h>. But just in case it
128 does, the use of the builtins is optional.
129
130 Any architecture with load-and-swap or store-and-swap
131 instructions should set this. And it shouldn't hurt to set it
132 on architectures that don't have such instructions.
133
115config HAVE_SYSCALL_WRAPPERS 134config HAVE_SYSCALL_WRAPPERS
116 bool 135 bool
117 136