um: merge arch/um/sys-{i386,x86_64}
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / um / sys-x86 / stub_segv_32.c
blob28ccf737a79fa9c7364e89fb6c36d3d0608a2f62
1 /*
2 * Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
4 */
6 #include "sysdep/stub.h"
7 #include "sysdep/sigcontext.h"
9 void __attribute__ ((__section__ (".__syscall_stub")))
10 stub_segv_handler(int sig)
12 struct sigcontext *sc = (struct sigcontext *) (&sig + 1);
14 GET_FAULTINFO_FROM_SC(*((struct faultinfo *) STUB_DATA), sc);
16 trap_myself();