From 2c3c1048746a4622d8c89a29670120dc8fab93c4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:49:45 +0200 Subject: Adding upstream version 6.1.76. Signed-off-by: Daniel Baumann --- arch/x86/um/stub_segv.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 arch/x86/um/stub_segv.c (limited to 'arch/x86/um/stub_segv.c') diff --git a/arch/x86/um/stub_segv.c b/arch/x86/um/stub_segv.c new file mode 100644 index 000000000..f7eefba03 --- /dev/null +++ b/arch/x86/um/stub_segv.c @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) + * Licensed under the GPL + */ + +#include +#include +#include +#include + +void __attribute__ ((__section__ (".__syscall_stub"))) +stub_segv_handler(int sig, siginfo_t *info, void *p) +{ + struct faultinfo *f = get_stub_page(); + ucontext_t *uc = p; + + GET_FAULTINFO_FROM_MC(*f, &uc->uc_mcontext); + trap_myself(); +} + -- cgit v1.2.3