]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Disable the fast-endian switch syscall by default
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 9 Oct 2017 10:54:05 +0000 (21:54 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 Oct 2017 10:08:31 +0000 (12:08 +0200)
commitac317455f4c7b2c74a018f52948cf1a65de1a8cd
tree081c0bfe2b0a848f8f798156693afc02d2972c64
parentff2749da5af3e0a9d68f795d32d18c1cbf4837c6
powerpc: Disable the fast-endian switch syscall by default

Back in 2008 we added support for "fast little-endian switch" in the
syscall path. This added a special case syscall number 0x1ebe, which
is caught very early in the system call exception and switches endian
with as little overhead as possible. See commit aac225f5529a
("[POWERPC] Add fast little-endian switch system call") for full
details.

Although it is fast, it's also completely non standard. The "syscall
number" is out of the range of normal syscalls, it can't be traced or
audited, and it's a bit of a wart. To the best of our knowledge it was
only used by one program, now long since discontinued.

So in an effort to shake out any current users, put it behind a config
option, and make it default n. If anyone *is* using it they can
quickly reinstate it with a rebuild, and we can flip it to default y.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig.debug
arch/powerpc/kernel/exceptions-64s.S