mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Add build option to disable usage of scv on powerpc
Commit68ab82f566
added support for the scv syscall ABI on powerpc. Since then systems that have kernel and processor support started using scv. However adding the proper support for a new syscall ABI requires changes to several other projects (e.g. qemu, valgrind, strace, kernel), which are gradually receiving support. Meanwhile, having a way to disable scv on glibc at build time can be useful for distros that may encounter conflicts with projects that still do not support the scv ABI, buying time until proper support is added. This commit adds a --disable-scv option that disables scv support and uses sc for all syscalls, like before commit68ab82f566
. Reviewed-by: Raphael M Zinsly <rzinsly@linux.ibm.com>
This commit is contained in:
@ -125,7 +125,7 @@
|
||||
|
||||
/* When inside the dynamic loader, the thread pointer may not have been
|
||||
initialized yet, so don't check for scv support in that case. */
|
||||
# if !IS_IN(rtld)
|
||||
# if defined(USE_PPC_SCV) && !IS_IN(rtld)
|
||||
# undef TRY_SYSCALL_SCV
|
||||
# define TRY_SYSCALL_SCV(nr) \
|
||||
CHECK_THREAD_POINTER && THREAD_GET_HWCAP() & PPC_FEATURE2_SCV ? \
|
||||
|
Reference in New Issue
Block a user