aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/sys-x86/stub_segv_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/sys-x86/stub_segv_32.c')
-rw-r--r--arch/um/sys-x86/stub_segv_32.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/um/sys-x86/stub_segv_32.c b/arch/um/sys-x86/stub_segv_32.c
new file mode 100644
index 000000000000..28ccf737a79f
--- /dev/null
+++ b/arch/um/sys-x86/stub_segv_32.c
@@ -0,0 +1,17 @@
1/*
2 * Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
4 */
5
6#include "sysdep/stub.h"
7#include "sysdep/sigcontext.h"
8
9void __attribute__ ((__section__ (".__syscall_stub")))
10stub_segv_handler(int sig)
11{
12 struct sigcontext *sc = (struct sigcontext *) (&sig + 1);
13
14 GET_FAULTINFO_FROM_SC(*((struct faultinfo *) STUB_DATA), sc);
15
16 trap_myself();
17}