From ace9429bb58fd418f0c81d4c2835699bddf6bde6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 11 Apr 2024 10:27:49 +0200 Subject: Adding upstream version 6.6.15. 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 0000000000..040668b989 --- /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_data(); + ucontext_t *uc = p; + + GET_FAULTINFO_FROM_MC(*f, &uc->uc_mcontext); + trap_myself(); +} + -- cgit v1.2.3