]> www.infradead.org Git - linux.git/commit
um: Rework syscall handling
authorBenjamin Berg <benjamin@sipsolutions.net>
Wed, 3 Jul 2024 13:45:28 +0000 (15:45 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jul 2024 15:09:49 +0000 (17:09 +0200)
commit76ed9158e1d474e963fc59da7a461b27a2212c5a
tree815dd1fd2568cdcc27d75178249cc809027ca80b
parent542dc79f6ea601788704a79ff54283c2bea265e9
um: Rework syscall handling

Rework syscall handling to be platform independent. Also create a clean
split between queueing of syscalls and flushing them out, removing the
need to keep state in the code that triggers the syscalls.

The code adds syscall_data_len to the global mm_id structure. This will
be used later to allow surrounding code to track whether syscalls still
need to run and if errors occurred.

Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net>
Link: https://patch.msgid.link/20240703134536.1161108-5-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
16 files changed:
arch/um/include/shared/os.h
arch/um/include/shared/skas/mm_id.h
arch/um/include/shared/skas/stub-data.h
arch/um/include/shared/user.h
arch/um/kernel/exec.c
arch/um/kernel/skas/Makefile
arch/um/kernel/skas/clone.c
arch/um/kernel/skas/stub.c [new file with mode: 0644]
arch/um/kernel/tlb.c
arch/um/os-Linux/skas/mem.c
arch/um/os-Linux/skas/process.c
arch/x86/um/Makefile
arch/x86/um/ldt.c
arch/x86/um/shared/sysdep/stub.h
arch/x86/um/stub_32.S [deleted file]
arch/x86/um/stub_64.S [deleted file]