linux/arch/s390/include/uapi/asm
Sven Schnelle 56e62a7370 s390: convert to generic entry
This patch converts s390 to use the generic entry infrastructure from
kernel/entry/*.

There are a few special things on s390:

- PIF_PER_TRAP is moved to TIF_PER_TRAP as the generic code doesn't
  know about our PIF flags in exit_to_user_mode_loop().

- The old code had several ways to restart syscalls:

  a) PIF_SYSCALL_RESTART, which was only set during execve to force a
     restart after upgrading a process (usually qemu-kvm) to pgste page
     table extensions.

  b) PIF_SYSCALL, which is set by do_signal() to indicate that the
     current syscall should be restarted. This is changed so that
     do_signal() now also uses PIF_SYSCALL_RESTART. Continuing to use
     PIF_SYSCALL doesn't work with the generic code, and changing it
     to PIF_SYSCALL_RESTART makes PIF_SYSCALL and PIF_SYSCALL_RESTART
     more unique.

- On s390 calling sys_sigreturn or sys_rt_sigreturn is implemented by
executing a svc instruction on the process stack which causes a fault.
While handling that fault the fault code sets PIF_SYSCALL to hand over
processing to the syscall code on exit to usermode.

The patch introduces PIF_SYSCALL_RET_SET, which is set if ptrace sets
a return value for a syscall. The s390x ptrace ABI uses r2 both for the
syscall number and return value, so ptrace cannot set the syscall number +
return value at the same time. The flag makes handling that a bit easier.
do_syscall() will just skip executing the syscall if PIF_SYSCALL_RET_SET
is set.

CONFIG_DEBUG_ASCE was removd in favour of the generic CONFIG_DEBUG_ENTRY.
CR1/7/13 will be checked both on kernel entry and exit to contain the
correct asces.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2021-01-19 12:29:26 +01:00
..
auxvec.h
bitsperlong.h
bpf_perf_event.h treewide: add "WITH Linux-syscall-note" to SPDX tag of uapi headers 2019-07-25 11:05:10 +02:00
byteorder.h
chpid.h
chsc.h s390/chsc: fix packed-not-aligned warnings 2018-07-17 07:27:56 +02:00
clp.h
cmb.h
dasd.h s390/dasd: Add new ioctl to release space 2019-07-11 20:39:54 +02:00
guarded_storage.h
hypfs.h
ioctls.h
ipcbuf.h arch: ipcbuf.h: make uapi asm/ipcbuf.h self-contained 2019-12-04 19:44:14 -08:00
ipl.h s390: nvme ipl 2020-05-06 15:19:35 +02:00
Kbuild kbuild: force all architectures except um to include mandatory-y 2019-03-17 12:56:32 +09:00
kvm_para.h
kvm_perf.h
kvm.h s390/kvm: diagnose 0x318 sync and reset 2020-06-23 10:55:33 +02:00
monwriter.h
perf_regs.h
pkey.h s390/pkey: support CCA and EP11 secure ECC private keys 2020-09-24 10:03:28 +02:00
posix_types.h s390: use generic UID16 implementation 2019-01-18 09:33:18 +01:00
ptrace.h s390: convert to generic entry 2021-01-19 12:29:26 +01:00
qeth.h
runtime_instr.h s390: fix unrecognized __aligned() in uapi header 2019-06-07 10:09:51 +02:00
schid.h
sclp_ctl.h
setup.h
sie.h s390/sie: fix typo in SIGP code description 2020-10-07 21:50:02 +02:00
sigcontext.h
signal.h arch: move SA_* definitions to generic headers 2020-11-23 10:31:05 -06:00
stat.h
statfs.h
sthyi.h
tape390.h
termios.h
types.h
ucontext.h
unistd.h
virtio-ccw.h
vmcp.h
vtoc.h
zcrypt.h s390/zcrypt: code beautification and struct field renames 2020-07-03 10:49:34 +02:00