mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-16 00:32:38 +00:00
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>
17 lines
359 B
C
17 lines
359 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#include <asm/unistd.h>
|
|
#include <sys/mman.h>
|
|
#include <signal.h>
|
|
#include <as-layout.h>
|
|
#include <stub-data.h>
|
|
|
|
#ifdef __i386__
|
|
#include "stub_32.h"
|
|
#else
|
|
#include "stub_64.h"
|
|
#endif
|
|
|
|
extern void stub_segv_handler(int, siginfo_t *, void *);
|
|
extern void stub_syscall_handler(void);
|
|
extern void stub_clone_handler(void);
|