linux/Documentation/powerpc
Nicholas Piggin 5665bc35c1 powerpc/64s/syscall: Use pt_regs.trap to distinguish syscall ABI difference between sc and scv syscalls
The sc and scv 0 system calls have different ABI conventions, and
ptracers need to know which system call type is being used if they want
to look at the syscall registers.

Document that pt_regs.trap can be used for this, and fix one in-tree user
to work with scv 0 syscalls.

Fixes: 7fa95f9ada ("powerpc/64s: system call support for scv/rfscv instructions")
Cc: stable@vger.kernel.org # v5.9+
Reported-by: "Dmitry V. Levin" <ldv@altlinux.org>
Suggested-by: "Dmitry V. Levin" <ldv@altlinux.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210520111931.2597127-1-npiggin@gmail.com
2021-05-21 00:58:03 +10:00
..
booting.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
bootwrapper.rst powerpc: Remove Xilinx PPC405/PPC440 support 2020-05-28 23:24:34 +10:00
cpu_families.rst docs: powerpc: Clarify book3s/32 MMU families 2020-07-15 12:04:38 +10:00
cpu_features.rst docs: powerpc: convert docs to ReST and rename to *.rst 2019-07-17 06:57:51 -03:00
cxl.rst docs: powerpc: cxl.rst: mark two section titles as such 2020-04-20 15:45:25 -06:00
cxlflash.rst docs: powerpc: convert docs to ReST and rename to *.rst 2019-07-17 06:57:51 -03:00
dawr-power9.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
dscr.rst docs: powerpc: convert docs to ReST and rename to *.rst 2019-07-17 06:57:51 -03:00
eeh-pci-error-recovery.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
elfnote.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
features.rst docs: archis: add a per-architecture features list 2020-12-03 15:10:15 -07:00
firmware-assisted-dump.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
hvcs.rst docs: powerpc: convert docs to ReST and rename to *.rst 2019-07-17 06:57:51 -03:00
imc.rst powerpc/imc: Add documentation for IMC and trace-mode 2020-01-06 16:25:27 +11:00
index.rst docs: archis: add a per-architecture features list 2020-12-03 15:10:15 -07:00
isa-versions.rst powerpc: Update documentation of ISA versions for Power10 2020-09-08 22:57:11 +10:00
kaslr-booke32.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
mpc52xx.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
papr_hcalls.rst powerpc updates for 5.13 2021-04-30 12:22:28 -07:00
pci_iov_resource_on_powernv.rst docs: powerpc: convert docs to ReST and rename to *.rst 2019-07-17 06:57:51 -03:00
pmu-ebb.rst docs: powerpc: convert docs to ReST and rename to *.rst 2019-07-17 06:57:51 -03:00
ptrace.rst powerpc/watchpoint/ptrace: Introduce PPC_DEBUG_FEATURE_DATA_BP_ARCH_31 2020-09-15 22:13:20 +10:00
qe_firmware.rst docs: powerpc: convert docs to ReST and rename to *.rst 2019-07-17 06:57:51 -03:00
syscall64-abi.rst powerpc/64s/syscall: Use pt_regs.trap to distinguish syscall ABI difference between sc and scv syscalls 2021-05-21 00:58:03 +10:00
transactional_memory.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
ultravisor.rst KVM: PPC: Book3S HV: In H_SVM_INIT_DONE, migrate remaining normal-GFNs to secure-GFNs 2020-07-28 12:34:52 +10:00
vas-api.rst Documentation/powerpc: Add proper links for manual and tests 2021-04-20 14:22:23 +10:00
vcpudispatch_stats.rst docs: powerpc: convert vcpudispatch_stats.txt to ReST 2020-06-19 14:09:48 -06:00